summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2019-11-15 16:39:54 +0100
committerAlan Pearce2019-11-15 16:39:54 +0100
commitf7f1eb54efd195b3a98860537c64e367790e47a6 (patch)
tree778503f92b949f5ca8c4c1614574139fcea73475 /user
parentcbab6521f9aee19c47f4422c8e98eab542421d2f (diff)
downloadnixfiles-f7f1eb54efd195b3a98860537c64e367790e47a6.tar.lz
nixfiles-f7f1eb54efd195b3a98860537c64e367790e47a6.tar.zst
nixfiles-f7f1eb54efd195b3a98860537c64e367790e47a6.zip
Emacs: silence evil-want-keybinding error when byte-compiling
Diffstat (limited to 'user')
-rw-r--r--user/emacs/.emacs.d/init.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el
index a38dbdd3..ccfea26f 100644
--- a/user/emacs/.emacs.d/init.el
+++ b/user/emacs/.emacs.d/init.el
@@ -297,14 +297,15 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
                     "C-r" #'winner-redo))
 ;;; Evil
 
+(defvar evil-want-integration)
+(defvar evil-want-keybinding)
+(eval-and-compile
+  (setq evil-want-integration t
+        evil-want-keybinding nil))
+
 (use-package evil
   :demand t
   :commands (evil-mode evil-delete-buffer evil-ex-define-cmd)
-  :init (progn
-	  (defvar evil-want-integration)
-	  (defvar evil-want-keybinding)
-	  (setq evil-want-integration t
-		evil-want-keybinding nil))
   :custom ((evil-shift-width 2)
 	   (evil-mode-line-format nil))
   :config (evil-mode +1)