add whitespace mode to yaml mode hook;

This commit is contained in:
amirrezaask 2020-08-08 04:48:49 +04:30
parent e202c1ec62
commit 8e9b6968c2
1 changed files with 1 additions and 0 deletions

View File

@ -258,6 +258,7 @@
(ability yaml ()
"YAML editor."
(require 'yaml-mode)
(add-hook 'yaml-mode-hook (lambda () (interactive) (whitespace-mode 1)))
(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))
(add-to-list 'auto-mode-alist '("\\.sls\\'" . yaml-mode)))