From 8c51e94c98a4efb85fd4a435f9308250f064264b Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 5 Dec 2019 11:51:38 +0100 Subject: [PATCH] Guix/Evil: Fix manifest bindings for insert state. --- .emacs.d/lisp/init-guix.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.emacs.d/lisp/init-guix.el b/.emacs.d/lisp/init-guix.el index d524d12c..5641c36e 100644 --- a/.emacs.d/lisp/init-guix.el +++ b/.emacs.d/lisp/init-guix.el @@ -108,7 +108,8 @@ If MANIFEST is nil, it is queried from the manifests found in `ambrevar/guix-man (global-set-key (kbd "C-x c g") #'ambrevar/guix-edit-manifest) (with-eval-after-load 'evil ;; For some reason `global-set-key' does not work for Evil at this point. - (evil-global-set-key 'normal (kbd "C-x c g") #'ambrevar/guix-edit-manifest)) + (dolist (mode '(normal insert)) + (evil-global-set-key mode (kbd "C-x c g") #'ambrevar/guix-edit-manifest))) (defun ambrevar/guix-save-channel-specs (dest) "Save current Guix channel specification to DEST." @@ -175,7 +176,8 @@ non-nil, then try to use a channel specification file from manifest-name))))) (global-set-key (kbd "C-x c G") #'ambrevar/guix-install-manifest) (with-eval-after-load 'evil - (evil-global-set-key 'normal (kbd "C-x c G") #'ambrevar/guix-install-manifest)) + (dolist (mode '(normal insert)) + (evil-global-set-key mode (kbd "C-x c G") #'ambrevar/guix-install-manifest))) ;; TODO: See `guix-apply-manifest' and expand on it. ;; TODO: Use --max-jobs=N.