summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2018-06-16 20:16:38 +0200
committerAlan Pearce2018-06-16 20:16:38 +0200
commitc72a3037fe988db5af5174535baf30e9b7ac395e (patch)
tree748871f5fd38f112dac8dbd339de53b29bda8dc4 /emacs
parente96620b897057a1e799cb761b3e1be375dc5609e (diff)
downloadnixfiles-c72a3037fe988db5af5174535baf30e9b7ac395e.tar.lz
nixfiles-c72a3037fe988db5af5174535baf30e9b7ac395e.tar.zst
nixfiles-c72a3037fe988db5af5174535baf30e9b7ac395e.zip
emacs: avoid error loading org files with evil-org
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 700ed0d8..e2c057a2 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -2704,7 +2704,8 @@ Pass ARG to `comint-delchar-or-maybe-eof'."
             (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