Update emacs.org

This commit is contained in:
Sako 2023-11-26 18:35:48 +04:00 committed by GitHub
parent 009e0da3af
commit 5e66899fbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -619,23 +619,42 @@ Should make startup faster, taken from doom-emacs
"\n* %<%I:%M %p> - Journal :journal:\n\n%?\n\n" "\n* %<%I:%M %p> - Journal :journal:\n\n%?\n\n"
;; ,(dw/read-file-as-string "~/Notes/Templates/Daily.org") ;; ,(dw/read-file-as-string "~/Notes/Templates/Daily.org")
:clock-in :clock-resume :clock-in :clock-resume
:empty-lines 1) :empty-lines 1))))
#+end_src
** Org Mode Beautifers
We have to compete with notion somehow right?
*** Org-Modern
#+begin_src emacs-lisp
(use-package org-modern
:hook
(org-mode . global-org-modern-mode)
:custom
;; Org styling
(org-hide-emphasis-markers t)
(org-pretty-entities t)
(org-ellipsis " ▾ ")
("w" "Workflows") ;; Agenda styling
("we" "Checking Email" entry (file+olp+datetree "~/Projects/Code/emacs-from-scratch/OrgFiles/Journal.org") (org-agenda-tags-column 0)
"* Checking Email :email:\n\n%?" :clock-in :clock-resume :empty-lines 1) (org-agenda-block-separator ?─)
(org-agenda-current-time-string "◀── now ─────────────────────────────────────────────────"))
("m" "Metrics Capture") #+end_src
("mw" "Weight" table-line (file+headline "~/Projects/Code/emacs-from-scratch/OrgFiles/Metrics.org" "Weight") *** Org-Superstar
"| %U | %^{Weight} | %^{Notes} |" :kill-buffer t)))) #+begin_src emacs-lisp
;; make it look better
(use-package org-superstar (use-package org-superstar
:after org :after org
:hook (org-mode . org-superstar-mode) :hook (org-mode . org-superstar-mode)
:config :config
(setq org-superstar-headline-bullets-list '("◉" "○" "◈" "◎"))) (setq org-superstar-headline-bullets-list '("◯" "◯" "◯" "◯"))
(setq org-superstar-remove-leading-stars t)
(setq org-superstar-item-bullet-alist
'((?+ . ?•)
(?* . ?➤)
(?- . ?)))
)
#+end_src
*** Olivetti
#+begin_src emacs-lisp
(use-package olivetti (use-package olivetti
:hook (org-mode . (lambda () (interactive) (olivetti-mode) (olivetti-set-width 100)))) :hook (org-mode . (lambda () (interactive) (olivetti-mode) (olivetti-set-width 100))))
#+end_src #+end_src