all repos — archive/dotfiles @ 1ec5a24e864217240f1a24a1b4a0004216a0dc2b

Superseded by nixfiles

Emacs: fix leader in magit
Alan Pearce alan@alanpearce.eu
Mon, 17 Jun 2019 11:58:23 +0200
commit

1ec5a24e864217240f1a24a1b4a0004216a0dc2b

parent

ec9c6bce04349b9c766c0bbbf72eda6669a2645e

1 files changed, 5 insertions(+), 2 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -102,6 +102,7 @@ (use-package general
   :functions (general-unbind general-define-key)
   :config (progn
+	    (general-override-mode +1)
             (when (eq system-type 'darwin)
               (general-unbind "s-x"))))
 
@@ -183,12 +184,14 @@ (use-package evil-collection   :config (evil-collection-init))
 
 (general-create-definer my-leader-def
+  :keymaps 'override
+  :states '(normal motion)
   :prefix ",")
 
 (use-package evil-space
   :defer 1
   :config (progn
-            (evil-space-mode)))
+            (evil-space-mode +1)))
 
 (use-package evil-surround
   :custom ((global-evil-surround-mode t)))
@@ -466,7 +469,7 @@ ;;; Take me to my leader
 
 (my-leader-def
- :keymaps 'normal
+ "" nil
  "h" '(:keymap ehelp-map)
  "w" '(:keymap evil-window-map)
  "x" '(:keymap ctl-x-map)