Commit e1cf81b4 authored by Vinicius Jose Latorre's avatar Vinicius Jose Latorre

Better code for whitespace-newline-mode.

parent 72b8747b
......@@ -1102,12 +1102,9 @@ See also `whitespace-newline' and `whitespace-display-mappings'."
:init-value nil
:global nil
:group 'whitespace
(cond
(whitespace-newline-mode
(let ((whitespace-style '(face newline-mark newline)))
(whitespace-mode whitespace-newline-mode)))
(t
(whitespace-mode -1)))
(let ((whitespace-style '(face newline-mark newline)))
(whitespace-mode (if whitespace-newline-mode
1 -1)))
;; sync states (running a batch job)
(setq whitespace-newline-mode whitespace-mode))
......
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