mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 04:58:53 +08:00
5fbfb3caad
Some of the settings in .dir-locals.el were modifying variables or properties that are not buffer-local. This commit attempts to fix that while preserving the same functionality as much as possible. Should fix #618.
20 lines
633 B
EmacsLisp
20 lines
633 B
EmacsLisp
;;; Directory Local Variables
|
|
;;; See Info node `(emacs) Directory Variables' for more information.
|
|
|
|
((nil
|
|
(sentence-end-double-space . t)
|
|
(require-final-newline . t)
|
|
(indent-tabs-mode))
|
|
(emacs-lisp-mode
|
|
(whitespace-style face trailing lines-tail)
|
|
(whitespace-line-column . 80)
|
|
(eval ignore-errors
|
|
(add-hook 'write-contents-functions
|
|
(lambda ()
|
|
(delete-trailing-whitespace (point-min) (point-max))
|
|
nil))
|
|
(require 'whitespace)
|
|
"Sometimes the mode needs to be toggled off and on."
|
|
(whitespace-mode 0)
|
|
(whitespace-mode 1))))
|