lang/org: fix void-function +org|setup-ui error

Caused if org is loaded early in your config, before :lang org is
loaded. Or when byte-compiling.
This commit is contained in:
Henrik Lissner 2018-05-14 20:49:43 +02:00
parent 8cab2f19fd
commit 48cb10a9cc
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -64,15 +64,11 @@
+org|enable-auto-update-cookies
+org|smartparens-compatibility-config
+org|unfold-to-2nd-level-or-point
+org|show-paren-mode-compatibility
))
+org|show-paren-mode-compatibility))
(after! org
(defvaralias 'org-directory '+org-dir))
(when (featurep 'org)
(run-hooks 'org-load-hook))
;;
;; `org-mode' hooks
@ -332,3 +328,7 @@ between the two."
(apply orig-fn args)))
(advice-add #'org-get-agenda-file-buffer
:around #'+org*exclude-agenda-buffers-from-recentf))
;;
(when (featurep 'org)
(run-hooks 'org-load-hook))