More evilness, including ESC for escape-quit

This commit is contained in:
Howard Abrams 2022-10-10 21:58:23 -07:00
parent 5a26d457a7
commit 238642cb3b

View file

@ -379,10 +379,15 @@ Can we change Evil at this point? Some tips:
evil-disable-insert-state-bindings t
evil-want-keybinding nil
evil-want-integration t
evil-want-C-u-scroll nil
evil-want-C-i-jump nil
evil-escape-key-sequence "jk"
evil-escape-unordered-key-sequence t)
:config
;; The Escape key act like C-g and always go back to normal mode?
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
;; Underscores are part of a symbolic word in programming languages:
;; Sure, I could use capital `W' and `B', but I often forget that.
(modify-syntax-entry ?_ "w")
@ -395,6 +400,17 @@ Can we change Evil at this point? Some tips:
;; In insert mode, type C-o to execute a single Evil command:
(define-key evil-insert-state-map (kbd "C-o") 'evil-execute-in-normal-state)
;; Even with the `evil-collections' (see below), some modes should be Emacs:
(dolist (mode '(custom-mode
eshell-mode
git-rebase-mode
erc-mode
circe-server-mode
circe-chat-mode
circe-query-mode
vterm-mode))
(add-to-list 'evil-emacs-state-modes mode)
(evil-mode))
#+end_src