summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcondy <condy0919@gmail.com>2020-11-14 20:54:48 +0800
committerPierre Neidhardt <mail@ambrevar.xyz>2020-11-15 18:53:44 +0100
commit18644e050cb9dd934a1ba6718a4b01d2747a71a0 (patch)
tree8f6546a0563addb3c1189aa1bfd13d0515f2215b
parent9d7b7ac266e2b466f54fd1faa185e56969fa8b09 (diff)
guix: revamped via read-only bindings
-rw-r--r--modes/guix/evil-collection-guix.el18
1 files changed, 4 insertions, 14 deletions
diff --git a/modes/guix/evil-collection-guix.el b/modes/guix/evil-collection-guix.el
index f364406..b4f7a87 100644
--- a/modes/guix/evil-collection-guix.el
+++ b/modes/guix/evil-collection-guix.el
@@ -47,7 +47,7 @@
(defmacro evil-collection-guix-set (map)
"Set common bindings in MAP."
`(progn
- (evil-collection-inhibit-insert-state ',map)
+ (evil-collection-set-readonly-bindings ',map)
(evil-collection-define-key 'normal ',map
;; motion
(kbd "SPC") 'scroll-up-command
@@ -78,12 +78,7 @@
"gR" 'bui-redisplay
;; repl
- "gz" 'guix-switch-to-repl
-
- ;; quit
- "q" 'quit-window
- "ZQ" 'evil-quit
- "ZZ" 'quit-window)))
+ "gz" 'guix-switch-to-repl)))
;;;###autoload
(defun evil-collection-guix-setup ()
@@ -187,7 +182,7 @@
(evil-collection-guix-set guix-hydra-build-info-mode-map)
- (evil-collection-inhibit-insert-state 'guix-build-log-mode-map)
+ (evil-collection-set-readonly-bindings 'guix-build-log-mode-map)
(evil-collection-define-key 'normal 'guix-build-log-mode-map
;; motion
(kbd "SPC") 'scroll-up-command
@@ -205,12 +200,7 @@
"gr" 'revert-buffer
;; repl
- "gz" 'guix-switch-to-repl ; TODO: Does it still make sense here?
-
- ;; quit
- "q" 'quit-window
- "ZQ" 'evil-quit
- "ZZ" 'quit-window)
+ "gz" 'guix-switch-to-repl)
(evil-collection-guix-set guix-service-list-mode-map)
(evil-collection-define-key 'normal 'guix-service-list-mode-map