diff options
author | David Robillard <d@drobilla.net> | 2016-06-10 15:36:56 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-06-10 15:36:56 -0400 |
commit | f240948003ebcd01db3faf132603c4e11ca44191 (patch) | |
tree | 25754870a2b80ca0513d48d0e48ecd2b67c75afa | |
parent | 9a75bb8ff3649feed5108ab7a9f11b5ccfad9f7b (diff) | |
download | dotfiles-f240948003ebcd01db3faf132603c4e11ca44191.tar.gz dotfiles-f240948003ebcd01db3faf132603c4e11ca44191.tar.bz2 dotfiles-f240948003ebcd01db3faf132603c4e11ca44191.zip |
Only show trailing whitespace for programming
-rw-r--r-- | emacs.d/init.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el index 3473d81..024ed88 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -37,7 +37,6 @@ (setq-default tab-width 4) (setq-default indent-tabs-mode nil) (setq-default scroll-margin 3) -(setq-default show-trailing-whitespace t) (spaceline-emacs-theme) (spaceline-toggle-buffer-size) (spaceline-toggle-hud) @@ -176,8 +175,10 @@ '(spaceline-modified ((t (:background "#A66" :foreground "#3E3D31" :inherit (quote mode-line))))) '(spaceline-unmodified ((t (:background "#777" :foreground "#3E3D31" :inherit (quote mode-line))))) '(warning ((t (:foreground "#B58900" :weight bold)))) + '(whitespace-indentation ((t (:foreground "grey20")))) '(whitespace-newline ((t (:foreground "grey20" :weight normal)))) '(whitespace-space ((t (:foreground "grey20")))) + '(whitespace-space-after-tab ((t (:foreground "grey20")))) '(whitespace-tab ((t (:foreground "grey20")))) '(woman-addition ((t (:inherit font-lock-builtin-face :foreground "#268BD2")))) '(woman-bold ((t (:inherit bold :foreground "#859900")))) @@ -315,6 +316,7 @@ (setq tab-width 4) (setq indent-tabs-mode t) (setq truncate-lines t) + (setq show-trailing-whitespace t) (c-set-style "drobilla")) (add-hook 'c-mode-common-hook 'my-c-mode-common-hook) @@ -325,7 +327,8 @@ (add-hook 'python-mode-hook (lambda () (setq tab-width 4) - (setq indent-tabs-mode nil))) + (setq indent-tabs-mode nil) + (setq show-trailing-whitespace))) ;; PDF |