Only use show-trailing-whitespace in prog-mode

This commit is contained in:
Adam Goldsmith 2017-08-05 12:28:26 -04:00
parent 70af53a2c1
commit cff2d15990

View File

@ -14,7 +14,6 @@
vc-follow-symlinks t vc-follow-symlinks t
custom-file (expand-file-name "~/.emacs.d/custom.el") custom-file (expand-file-name "~/.emacs.d/custom.el")
gc-cons-threshold 100000000) gc-cons-threshold 100000000)
(setq-default show-trailing-whitespace t)
(load-theme 'fred t) (load-theme 'fred t)
(savehist-mode 1) (savehist-mode 1)
(show-paren-mode 1) (show-paren-mode 1)
@ -194,6 +193,11 @@
; bind a key to revert buffers with no prompt ; bind a key to revert buffers with no prompt
(bind-key "C-x M-v" (lambda () (interactive) (revert-buffer t t t)))) (bind-key "C-x M-v" (lambda () (interactive) (revert-buffer t t t))))
(use-package prog-mode
:config
(add-hook 'prog-mode-hook
#'(lambda () (setq-local show-trailing-whitespace t))))
;;;; external packages (required) ;;;; external packages (required)
(use-package company :ensure (use-package company :ensure
:config :config