From c72a3037fe988db5af5174535baf30e9b7ac395e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 16 Jun 2018 20:16:38 +0200 Subject: emacs: avoid error loading org files with evil-org --- emacs/.emacs.d/main.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1