summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-07-31 20:49:03 -0700
committerFranck Cuny <franckcuny@gmail.com>2016-07-31 20:49:03 -0700
commitcb1c36a2b9e1f56845d25efe478d72cc43338920 (patch)
tree7e9cbb19962166ad0eab6b6f29ed66b63a8ee237
parent[emacs] cleanup. (diff)
downloademacs.d-cb1c36a2b9e1f56845d25efe478d72cc43338920.tar.gz
[emacs] Show trailing white space
Closes #5
-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")))