summaryrefslogtreecommitdiff
path: root/tw/home/files
diff options
context:
space:
mode:
authorTimo Wilken2023-10-11 22:28:50 +0200
committerTimo Wilken2023-10-11 22:50:21 +0200
commit3b80e972dad31e241ebeccd0b3ecbd648901682a (patch)
tree2bf36a9cda02a2e9dd627aac96484cf628d11d94 /tw/home/files
parent8eebec8591578111810f5e256b5052d8212b0f00 (diff)
Disable trailing-space highlighting in help and eww (dash-docs) modes
Diffstat (limited to 'tw/home/files')
-rw-r--r--tw/home/files/emacs-init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/tw/home/files/emacs-init.el b/tw/home/files/emacs-init.el
index 2c11692b..67168122 100644
--- a/tw/home/files/emacs-init.el
+++ b/tw/home/files/emacs-init.el
@@ -96,6 +96,13 @@ If CREATE is true and the resulting directory does not exist, create it."
(add-hook 'mail-mode-hook #'auto-fill-mode)
+(defun tw/hide-trailing-whitespace ()
+ "Don't highlight trailing whitespace for this buffer."
+ (setq-local show-trailing-whitespace nil))
+
+(add-hook 'help-mode-hook #'tw/hide-trailing-whitespace)
+(add-hook 'eww-mode-hook #'tw/hide-trailing-whitespace)
+
(defun tw/enable-word-wrap ()
"Enable word wrapping."
(toggle-word-wrap +1))