Add referenced whitespace-mode
This commit is contained in:
parent
197e3040c3
commit
348f341de1
1 changed files with 7 additions and 2 deletions
|
@ -25,6 +25,11 @@
|
|||
|
||||
;;; 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
|
||||
(let ((load-directory
|
||||
(file-name-directory
|
||||
|
@ -324,9 +329,9 @@
|
|||
|
||||
(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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue