lang/org: refactor org init process

after! org is more reliable than org-load-hook.
This commit is contained in:
Henrik Lissner 2017-12-09 14:42:42 -05:00
parent 9d3155892a
commit cd7bd7628f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
7 changed files with 52 additions and 46 deletions

View file

@ -461,10 +461,10 @@ you came from."
(advice-add #'plantuml-preview-string
:around #'doom*plantuml-preview-in-popup-window))
;; Ensure these settings are attached to org-load-hook as late as possible,
;; giving other modules a chance to add their own hooks.
;; Ensure these settings are loaded as late as possible, giving other modules a
;; chance to reconfigure org popup settings before the defaults kick in.
(defun doom|init-org-popups ()
(add-hook! 'org-load-hook
(after! org
(set! :popup
'("*Calendar*" :size 0.4 :noselect t)
'(" *Org todo*" :size 5 :noselect t)