lang/org: revise org-modules & revise load order
Improves the startup performance of org-mode by disabling modules I don't think are commonly used (it's easy to add back however).
This commit is contained in:
parent
ed1775b42d
commit
9726a982d1
1 changed files with 20 additions and 5 deletions
|
@ -5,6 +5,18 @@
|
||||||
|
|
||||||
(defvar org-directory "~/org/")
|
(defvar org-directory "~/org/")
|
||||||
|
|
||||||
|
(defvar org-modules
|
||||||
|
'(org-w3m
|
||||||
|
;; org-bbdb
|
||||||
|
org-bibtex
|
||||||
|
org-docview
|
||||||
|
;; org-gnus
|
||||||
|
org-info
|
||||||
|
;; org-irc
|
||||||
|
;; org-mhe
|
||||||
|
;; org-rmail
|
||||||
|
))
|
||||||
|
|
||||||
;; Sub-modules
|
;; Sub-modules
|
||||||
(if (featurep! +attach) (load! "+attach"))
|
(if (featurep! +attach) (load! "+attach"))
|
||||||
(if (featurep! +babel) (load! "+babel"))
|
(if (featurep! +babel) (load! "+babel"))
|
||||||
|
@ -16,8 +28,7 @@
|
||||||
(doom-load-packages-incrementally
|
(doom-load-packages-incrementally
|
||||||
'(calendar find-func format-spec org-macs org-compat
|
'(calendar find-func format-spec org-macs org-compat
|
||||||
org-faces org-entities org-list org-pcomplete org-src
|
org-faces org-entities org-list org-pcomplete org-src
|
||||||
org-footnote org-macro ob org org-clock org-agenda
|
org-footnote org-macro ob org org-agenda org-capture))
|
||||||
org-capture))
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
@ -46,8 +57,7 @@
|
||||||
;; Bootstrap
|
;; Bootstrap
|
||||||
|
|
||||||
(add-hook! 'org-load-hook
|
(add-hook! 'org-load-hook
|
||||||
#'(org-crypt-use-before-save-magic
|
#'(+org|setup-ui
|
||||||
+org|setup-ui
|
|
||||||
+org|setup-popup-rules
|
+org|setup-popup-rules
|
||||||
+org|setup-agenda
|
+org|setup-agenda
|
||||||
+org|setup-keybinds
|
+org|setup-keybinds
|
||||||
|
@ -413,7 +423,11 @@ conditions where a window's buffer hasn't changed at the time this hook is run."
|
||||||
;; Built-in libraries
|
;; Built-in libraries
|
||||||
|
|
||||||
(def-package! org-crypt ; built-in
|
(def-package! org-crypt ; built-in
|
||||||
:commands org-crypt-use-before-save-magic
|
:commands org-encrypt-entries
|
||||||
|
:hook (org-reveal-start . org-decrypt-entry)
|
||||||
|
:init
|
||||||
|
(add-hook! 'org-mode-hook
|
||||||
|
(add-hook 'before-save-hook 'org-encrypt-entries nil t))
|
||||||
:config
|
:config
|
||||||
(setq org-tags-exclude-from-inheritance '("crypt")
|
(setq org-tags-exclude-from-inheritance '("crypt")
|
||||||
org-crypt-key user-mail-address))
|
org-crypt-key user-mail-address))
|
||||||
|
@ -421,6 +435,7 @@ conditions where a window's buffer hasn't changed at the time this hook is run."
|
||||||
(def-package! org-clock
|
(def-package! org-clock
|
||||||
:commands org-clock-save
|
:commands org-clock-save
|
||||||
:hook (org-mode . org-clock-load)
|
:hook (org-mode . org-clock-load)
|
||||||
|
:defer-incrementally t
|
||||||
:init
|
:init
|
||||||
(setq org-clock-persist 'history
|
(setq org-clock-persist 'history
|
||||||
org-clock-persist-file (concat doom-etc-dir "org-clock-save.el"))
|
org-clock-persist-file (concat doom-etc-dir "org-clock-save.el"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue