summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))