From 7d5e6fbaaa02630906a93ee2634339524321487a Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 28 Nov 2019 18:58:01 +0100 Subject: [PATCH] Emacs/Guix: Bind manifest edition functions in Evil as well. --- .emacs.d/lisp/init-guix.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.emacs.d/lisp/init-guix.el b/.emacs.d/lisp/init-guix.el index e4753ebc..d524d12c 100644 --- a/.emacs.d/lisp/init-guix.el +++ b/.emacs.d/lisp/init-guix.el @@ -106,6 +106,9 @@ If MANIFEST is nil, it is queried from the manifests found in `ambrevar/guix-man (setq manifest (second (ambrevar/guix-query-manifest manifest))) (find-file manifest)) (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)) (defun ambrevar/guix-save-channel-specs (dest) "Save current Guix channel specification to DEST." @@ -171,7 +174,10 @@ non-nil, then try to use a channel specification file from ambrevar/guix-channel-spec-directory 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)) ;; TODO: See `guix-apply-manifest' and expand on it. +;; TODO: Use --max-jobs=N. (provide 'init-guix)