summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2024-01-07 23:37:00 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2024-01-08 00:03:28 +0100
commitf9226f2dd0cf05fe7ff69bfe1b2cefa516c8c4f5 (patch)
tree49b3e70b7600a786319c31ed0873f47f0464c16e /.emacs
parent44fbf0a42d69ec2d6bfb04412179e926ec003f5f (diff)
downloaddotfiles-f9226f2dd0cf05fe7ff69bfe1b2cefa516c8c4f5.tar.xz
Make Gnus leverage visual-line-mode
Set shr-fill-text to nil; this automatically causes eww to enable visual-line-mode. For Gnus, the dance is a bit more involved. Not 100% happy with where I landed, but at least I gave myself an escape hatch by rebinding C-c d v in summary buffers. Also, * lift size restriction when fontifying citations: it mostly only ever causes fontification failures when people review big patches, * tweak header order slightly, * align shr heading faces with eighters-title-* faces.
Diffstat (limited to '.emacs')
-rw-r--r--.emacs6
1 files changed, 6 insertions, 0 deletions
diff --git a/.emacs b/.emacs
index 18f4de5..b126177 100644
--- a/.emacs
+++ b/.emacs
@@ -874,6 +874,12 @@
(setq shell-font-lock-keywords nil)
(add-hook 'shell-mode-hook 'my/shell-hook))
+(use-package shr
+ :custom
+ ;; Prefer visual-line-mode, which refills text automatically when
+ ;; the window width changes.
+ (shr-fill-text nil))
+
(use-package which-key
:custom
(which-key-idle-delay 0.5)