mirror of https://github.com/bjeanes/dotfiles.git
9 lines
266 B
EmacsLisp
9 lines
266 B
EmacsLisp
|
(add-hook 'prog-mode-hook
|
||
|
(lambda ()
|
||
|
(flyspell-prog-mode)
|
||
|
(whitespace-mode +1)
|
||
|
|
||
|
;; TODO: Look into whitespace-cleanup instead?
|
||
|
(add-hook 'before-save-hook
|
||
|
'delete-trailing-whitespace)))
|