Tweak evil settings

This commit is contained in:
TEC 2021-05-28 15:29:32 +08:00
parent 3ad6e0ab1a
commit 1ce89a492d
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 18 additions and 7 deletions

View File

@ -2166,18 +2166,29 @@ counts right?
(setq eros-eval-result-prefix "⟹ ")
#+end_src
** EVIL
When I want to make a substitution, I want it to be global more often than not
--- so let's make that the default.
Now, EVIL cares a fair bit about keeping compatibility with Vim's default
behaviour. I don't. There are some particular settings that I'd rather be
something else, so let's change them.
#+begin_src emacs-lisp
(after! evil
(setq evil-ex-substitute-global t ; I like my s/../.. to by global by default
evil-move-cursor-back nil ; Don't move the block cursor when toggling insert mode
evil-kill-on-visual-paste nil)) ; Don't put overwritten text in the kill ring
#+end_src
I don't use ~evil-escape-mode~, so I may as well turn it off, I've heard it
contributes a typing delay. I'm not sure it's much, but it is an extra
~pre-command-hook~ that I don't benefit from, so...
#+begin_src emacs-lisp
(after! evil-escape (evil-escape-mode -1))
It seems that there's a dedicated package for this, so instead of just disabling
the mode on startup, let's prevent installation of the package.
#+begin_src emacs-lisp :tangle packages.el
(package! evil-escape :disable t)
#+end_src
When I want to make a substitution, I want it to be global more often than not
--- so let's make that the default.
#+begin_src emacs-lisp
(after! evil (setq evil-ex-substitute-global t)) ; I like my s/../.. to by global by default
#+end_src
** Info colours
#+begin_src emacs-lisp
(use-package! info-colors