Whitespace mode is hooked into prog-mode.

This commit is contained in:
tastytea 2019-03-21 08:12:44 +01:00
parent 7f2e965028
commit 6320b6931a
2 changed files with 5 additions and 3 deletions

View File

@ -412,8 +412,8 @@
;; Keybinding for whitespace, don't visualise newlines ;; Keybinding for whitespace, don't visualise newlines
(use-package whitespace (use-package whitespace
:config :config
(delete 'newline-mark whitespace-style) (delete 'newline-mark whitespace-style) ; $ at eol
(global-whitespace-mode) (delete 'lines whitespace-style) ; Don't paint lines red if too long.
;; Don't show dots in company menu ;; Don't show dots in company menu
(defun on-off-whitespace-before-company(command) (defun on-off-whitespace-before-company(command)
(when (string= "show" command) (when (string= "show" command)
@ -424,6 +424,8 @@
:before #'on-off-whitespace-before-company) :before #'on-off-whitespace-before-company)
:bind :bind
("C-x w" . 'whitespace-mode) ("C-x w" . 'whitespace-mode)
:hook
(prog-mode . whitespace-mode)
:custom-face :custom-face
(whitespace-space ((nil :foreground "gray18")))) (whitespace-space ((nil :foreground "gray18"))))

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 18545 127.0.0.1:51313 4674
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh