Emacs/Guix: Bind manifest edition functions in Evil as well.
parent
9cd118f776
commit
7d5e6fbaaa
|
@ -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)))
|
(setq manifest (second (ambrevar/guix-query-manifest manifest)))
|
||||||
(find-file manifest))
|
(find-file manifest))
|
||||||
(global-set-key (kbd "C-x c g") #'ambrevar/guix-edit-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)
|
(defun ambrevar/guix-save-channel-specs (dest)
|
||||||
"Save current Guix channel specification to 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
|
ambrevar/guix-channel-spec-directory
|
||||||
manifest-name)))))
|
manifest-name)))))
|
||||||
(global-set-key (kbd "C-x c G") #'ambrevar/guix-install-manifest)
|
(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: See `guix-apply-manifest' and expand on it.
|
||||||
|
;; TODO: Use --max-jobs=N.
|
||||||
|
|
||||||
(provide 'init-guix)
|
(provide 'init-guix)
|
||||||
|
|
Loading…
Reference in New Issue