summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--emacs.d/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index cb732f5..bd33fdc 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -95,6 +95,9 @@
 (electric-pair-mode 1)
 
 ;; if running in macos, load environment variables
+(add-hook 'prog-mode-hook
+          (lambda () (setq show-trailing-whitespace t)))
+
 (when (memq window-system '(mac ns x))
   (exec-path-from-shell-initialize)
   (exec-path-from-shell-copy-envs '("TMPDIR")))