Guix/Evil: Fix manifest bindings for insert state.

master
Pierre Neidhardt 2019-12-05 11:51:38 +01:00
parent 8fd3afe58b
commit 8c51e94c98
1 changed files with 4 additions and 2 deletions

View File

@ -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.