summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2018-06-15 16:47:16 +0200
committerAlan Pearce2018-06-15 16:47:16 +0200
commitf2640eb84768f7130c5d78a4070d121da11dd555 (patch)
treedb07062bcb6449fad88a2812cb650959486b1516
parent6d9b36a2a9f1d7218eeaf325c3aad87bb7af0f4c (diff)
downloaddotfiles-f2640eb84768f7130c5d78a4070d121da11dd555.tar.lz
dotfiles-f2640eb84768f7130c5d78a4070d121da11dd555.tar.zst
dotfiles-f2640eb84768f7130c5d78a4070d121da11dd555.zip
emacs: Fix eyebrowse+evil
-rw-r--r--emacs/.emacs.d/main.el24
1 files changed, 12 insertions, 12 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 4cf7222..5e99bf1 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -958,19 +958,19 @@
                ("s-7" . eyebrowse-switch-to-window-config-7)
                ("s-8" . eyebrowse-switch-to-window-config-8)
                ("s-9" . eyebrowse-switch-to-window-config-9)))
-            (bind-keys
-             :map evil-window-map
-             ("0" . eyebrowse-switch-to-window-config-0)
-             ("1" . eyebrowse-switch-to-window-config-1)
-             ("2" . eyebrowse-switch-to-window-config-2)
-             ("3" . eyebrowse-switch-to-window-config-3)
-             ("4" . eyebrowse-switch-to-window-config-4)
-             ("5" . eyebrowse-switch-to-window-config-5)
-             ("6" . eyebrowse-switch-to-window-config-6)
-             ("7" . eyebrowse-switch-to-window-config-7)
-             ("8" . eyebrowse-switch-to-window-config-8)
-             ("9" . eyebrowse-switch-to-window-config-9))
             (eyebrowse-mode +1)
+            (with-eval-after-load "evil-vars"
+              (bind-keys :map evil-window-map
+                         ("0" . eyebrowse-switch-to-window-config-0)
+                         ("1" . eyebrowse-switch-to-window-config-1)
+                         ("2" . eyebrowse-switch-to-window-config-2)
+                         ("3" . eyebrowse-switch-to-window-config-3)
+                         ("4" . eyebrowse-switch-to-window-config-4)
+                         ("5" . eyebrowse-switch-to-window-config-5)
+                         ("6" . eyebrowse-switch-to-window-config-6)
+                         ("7" . eyebrowse-switch-to-window-config-7)
+                         ("8" . eyebrowse-switch-to-window-config-8)
+                         ("9" . eyebrowse-switch-to-window-config-9)))
             (define-hook-helper evil-after-load ()
               :name evil-eyebrowse-setup
               (eyebrowse-setup-evil-keys))))