Merge branch 'add-yaml-mode' into 'master'

Add whitespace mode to yaml mode hook;

See merge request FG42/FG42!33
This commit is contained in:
AmirrezaAsk 2020-08-08 09:04:34 +00:00
commit abbee756ea
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)))