Add referenced whitespace-mode

This commit is contained in:
Tom Willemse 2018-06-27 10:53:14 -07:00
parent 197e3040c3
commit 348f341de1

View file

@ -25,6 +25,11 @@
;;; Code: ;;; Code:
(defun init-whitespace-only-tabs-mode ()
"Enable whitespace mode with only tabs showing."
(setq-local whitespace-style '(face tabs))
(whitespace-mode))
(eval-and-compile (eval-and-compile
(let ((load-directory (let ((load-directory
(file-name-directory (file-name-directory
@ -324,9 +329,9 @@
(add-hook 'python-mode-hook 'flycheck-mode) (add-hook 'python-mode-hook 'flycheck-mode)
(add-hook 'web-mode-hook 'oni-whitespace-only-tabs-mode) (add-hook 'web-mode-hook 'init-whitespace-only-tabs-mode)
(add-hook 'makefile-mode-hook 'oni-whitespace-only-tabs-mode) (add-hook 'makefile-mode-hook 'init-whitespace-only-tabs-mode)
(add-hook 'makefile-mode-hook 'electric-pair-local-mode) (add-hook 'makefile-mode-hook 'electric-pair-local-mode)