From dbefe4b5d96c9fec228714f937d6a9e353db343d Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sat, 27 Jul 2024 11:21:21 +0000 Subject: Remove anzu --- config.org | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/config.org b/config.org index 52dd954..287b99b 100644 --- a/config.org +++ b/config.org @@ -1683,21 +1683,14 @@ If you want to move the cursor to a subsequent instance of the search term, you Semi-modes seem hard to implement in emacs, although in a lot of ways they are already here. I am not a fan of modes in the vi-sense at all, and isearch in emacs is a mode like this. That is, keybindings work differently when isearching, and you have to press C-g or RET to go back to the normal editing flow. -** Replace -Anzu provides real-time updates to the replacement string when running query-replace. - -#+begin_src elisp - (package-ensure 'anzu) - (global-set-key [remap query-replace] 'anzu-query-replace) - (global-set-key [remap query-replace-regexp] 'anzu-query-replace-regexp) -#+end_src - +* Window management My computer has a small screen, so i find that it's more beneficial for me to split the frame into columns, so i get more context. However, splitting in this way only gives me a (window-width) of 61, so emacs will always split into vertically stacked windows. By setting this to 80, the first split should always be vertical. #+begin_src elisp (setopt split-width-threshold 80) #+end_src +* Global text search Define a handy function that allows me to do a full text search of every file in my home directory. For the most part, this works well; ripgrep avoids binary files. However, in some files with embedded images, it can add a lot of junk to the output. #+begin_src elisp -- cgit 1.4.1-2-gfad0