Emacs/Guix: Bind manifest edition functions in Evil as well.

master
Pierre Neidhardt 2019-11-28 18:58:01 +01:00
parent 9cd118f776
commit 7d5e6fbaaa
1 changed files with 6 additions and 0 deletions

View File

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