Disable show-trailing-whitespace by default #1593

Let people decide if they want it on or not.

See doom-enable-show-trailing-whitespace-h or setq-hook!
This commit is contained in:
Henrik Lissner 2019-07-28 16:02:30 +02:00
parent 1e7df8046c
commit ff5be98cec
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -158,13 +158,6 @@ read-only or not file-visiting."
ring-bell-function #'ignore ring-bell-function #'ignore
visible-bell nil) visible-bell nil)
;; Use `show-trailing-whitespace' instead of `whitespace-mode' because it's
;; faster (implemented in C). But try to only enable it in editing buffers.
(setq-default show-trailing-whitespace nil)
(add-hook! (prog-mode text-mode conf-mode)
(defun doom-enable-show-trailing-whitespace-h ()
(setq show-trailing-whitespace t)))
;; middle-click paste at point, not at click ;; middle-click paste at point, not at click
(setq mouse-yank-at-point t) (setq mouse-yank-at-point t)