all repos — archive/dotfiles @ f2640eb84768f7130c5d78a4070d121da11dd555

Superseded by nixfiles

emacs: Fix eyebrowse+evil
Alan Pearce alan@alanpearce.eu
Fri, 15 Jun 2018 16:47:16 +0200
commit

f2640eb84768f7130c5d78a4070d121da11dd555

parent

6d9b36a2a9f1d7218eeaf325c3aad87bb7af0f4c

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

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -958,19 +958,19 @@ ("s-6" . eyebrowse-switch-to-window-config-6)                ("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))))