Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 6849fbf1 authored by Ryan C. Thompson's avatar Ryan C. Thompson

Merge branch 'fix-dir-locals'

parents b997bce9 00136036
......@@ -9,10 +9,12 @@
(whitespace-style face trailing lines-tail)
(whitespace-line-column . 80)
(eval ignore-errors
(add-hook 'before-save-hook 'delete-trailing-whitespace)
"Write-contents-functions is a buffer-local alternative to before-save-hook"
(add-hook 'write-contents-functions
(lambda ()
(delete-trailing-whitespace (point-min) (point-max))
nil))
(require 'whitespace)
(set-face-attribute 'whitespace-line nil :background "red1" :foreground "yellow" :weight 'bold)
(set-face-attribute 'whitespace-tab nil :background "red1" :foreground "yellow" :weight 'bold)
"Need to ensure that whitespace mode is turned off and on again. This guaranteees that the new values of the whitespace-related variables will take effect."
"Sometimes the mode needs to be toggled off and on."
(whitespace-mode 0)
(whitespace-mode 1))))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment