calc: revamped via read-only bindings

This commit is contained in:
condy 2020-11-14 20:07:41 +08:00 committed by Pierre Neidhardt
parent 9d70a12276
commit a0d44aebe5
1 changed files with 1 additions and 3 deletions

View File

@ -34,7 +34,7 @@
;;;###autoload
(defun evil-collection-calc-setup ()
"Set up `evil' bindings for `calc'."
(evil-collection-inhibit-insert-state 'calc-mode-map)
(evil-collection-set-readonly-bindings 'calc-mode-map)
(evil-set-initial-state 'calc-mode 'normal)
;; Calc sets up its bindings just-in-time for its "extensions". I don't think
@ -163,8 +163,6 @@
"zz" (lookup-key calc-mode-map (kbd "z"))
;; quit
;; "ZQ" 'quit-window ; TODO: Rebind "Z"?
;; "ZZ" 'quit-window ; TODO: Rebind "Z"?
"q" 'calc-quit)
(evil-collection-define-key 'visual 'calc-mode-map