mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
refactor(org): use variables instead of +org-pretty-mode
Toggling +org-pretty-mode on startup is much slower (because `org-toggle-pretty-entites` and realigning tables can be expensive in larger Org buffers), so rely on the variables instead.
This commit is contained in:
@ -11,7 +11,10 @@
|
|||||||
(use-package! org-modern
|
(use-package! org-modern
|
||||||
:hook (org-mode . org-modern-mode)
|
:hook (org-mode . org-modern-mode)
|
||||||
:hook (org-agenda-finalize . org-modern-agenda)
|
:hook (org-agenda-finalize . org-modern-agenda)
|
||||||
:hook (org-modern-mode . +org-pretty-mode)
|
:init
|
||||||
|
(after! org
|
||||||
|
(setq org-hide-emphasis-markers t
|
||||||
|
org-pretty-entities t))
|
||||||
:config
|
:config
|
||||||
;; HACK: If `org-indent-mode' is active, org-modern's default of hiding
|
;; HACK: If `org-indent-mode' is active, org-modern's default of hiding
|
||||||
;; leading stars makes sub-headings look too sunken into the left margin.
|
;; leading stars makes sub-headings look too sunken into the left margin.
|
||||||
|
Reference in New Issue
Block a user