summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelle Licht <jlicht@fsfe.org>2021-05-14 15:42:17 +0200
committerYoumu <condy0919@gmail.com>2021-05-15 22:20:16 +0800
commit496550d8dd53a057cfb39d5f0c2b9d628e5c3a72 (patch)
tree98b38c1e52bfc68512893877514f8c8d5f977042
parent23c60d576cf2ca4e931ca43815ceccc3f98acec1 (diff)
Add readonly-bindings to vc-dir-mode
-rw-r--r--modes/vc-dir/evil-collection-vc-dir.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/modes/vc-dir/evil-collection-vc-dir.el b/modes/vc-dir/evil-collection-vc-dir.el
index 65b3e96..5f57691 100644
--- a/modes/vc-dir/evil-collection-vc-dir.el
+++ b/modes/vc-dir/evil-collection-vc-dir.el
@@ -36,6 +36,7 @@
(defun evil-collection-vc-dir-setup ()
"Set up `evil' bindings for `vc-dir'."
(evil-set-initial-state 'vc-dir-mode 'normal)
+ (evil-collection-set-readonly-bindings 'vc-dir-mode-map)
(evil-collection-define-key 'normal 'vc-dir-mode-map
;; VC commands
"c" 'vc-next-action