summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2025-05-18 12:33:14 +0100
committerSam Light <samlight1994@gmail.com>2025-05-18 12:33:14 +0100
commitb97504e963249db99c69bcef51e612f7e149210a (patch)
tree0fed8ae56e2f4022183ab51017226be148de27ec /config
parent4c21fb52f969b6c7ea2593fb55561ee0774b8be9 (diff)
Enable whitespace mode with hook rather than global
Diffstat (limited to 'config')
-rw-r--r--config/editor.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/editor.el b/config/editor.el
index 6eec25d..4029b6e 100644
--- a/config/editor.el
+++ b/config/editor.el
@@ -85,10 +85,10 @@
(global-whitespace-cleanup-mode t))
(use-package whitespace
+ :hook (text-mode prog-mode)
:config
(setq whitespace-line-column 80) ;; limit line length
- (setq whitespace-style '(face tabs empty trailing lines-tail))
- (global-whitespace-mode t))
+ (setq whitespace-style '(face tabs empty trailing lines-tail)))
(use-package super-save
:ensure t