emacs: enable line truncation in grep-mode buffers

This commit is contained in:
Protesilaos Stavrou 2025-07-02 10:34:50 +03:00
parent ca91932a3f
commit f9d0d41c89
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 2 additions and 0 deletions

View file

@ -108,6 +108,7 @@
(use-package grep
:ensure nil
:commands (grep lgrep rgrep)
:hook (grep-mode . prot-common-truncate-lines-silently)
:config
(setq grep-save-buffers nil)
(setq grep-use-headings t) ; Emacs 30

View file

@ -5428,6 +5428,7 @@ Note the use of the ~let~ to decide whether I use the ~grep~ or ~rg~
(use-package grep
:ensure nil
:commands (grep lgrep rgrep)
:hook (grep-mode . prot-common-truncate-lines-silently)
:config
(setq grep-save-buffers nil)
(setq grep-use-headings t) ; Emacs 30