diff --git a/config.org b/config.org index 12def7f..7e82e37 100644 --- a/config.org +++ b/config.org @@ -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