[emacs] Fix yaml hook to get proper flycheck

This commit is contained in:
Sebastian Schulze 2020-02-19 13:46:16 +01:00
parent 5190dbb291
commit d25e0b6306
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 5 additions and 1 deletions

View File

@ -552,10 +552,14 @@ you should place your code here."
;(spaceline-toggle-minor-modes-off)
(add-hook 'yaml-mode-hook
'indent-guide-mode
(lambda ()
(indent-guide-mode 1)
(auto-fill-mode -1)
(flyspell-mode -1)
(flyspell-prog-mode)
(flycheck-mode 1)
(flycheck-yamllint-setup)
(flycheck-select-checker 'yaml-yamllint)
))
(with-eval-after-load "ispell"