all repos — nixfiles @ c72a3037fe988db5af5174535baf30e9b7ac395e

System and user configuration, managed by nix and home-manager

emacs: avoid error loading org files with evil-org
Alan Pearce alan@alanpearce.eu
Sat, 16 Jun 2018 20:16:38 +0200
commit

c72a3037fe988db5af5174535baf30e9b7ac395e

parent

e96620b897057a1e799cb761b3e1be375dc5609e

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -2704,7 +2704,8 @@ :config (progn             (define-hook-helper org-mode ()
               (evil-org-mode +1))
             (define-hook-helper evil-org-mode ()
-              (evil-org-set-key-theme))))
+              (when (fboundp 'evil-org-set-key-theme)
+                (evil-org-set-key-theme)))))
 
 (use-package evil-org-agenda
   :if evil-mode