Append flyspell-mode to LaTeX-mode-hook #654

If run too soon, the user has no opportunity to change
+spellcheck-immediately.
This commit is contained in:
Henrik Lissner 2018-06-15 21:00:38 +02:00
parent d0abe742f9
commit 9e85acec2c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -68,7 +68,7 @@
;; Enable rainbow mode after applying styles to the buffer
(add-hook 'TeX-update-style-hook #'rainbow-delimiters-mode)
(when (featurep! :feature spellcheck)
(add-hook 'LaTeX-mode-hook #'flyspell-mode))
(add-hook 'LaTeX-mode-hook #'flyspell-mode :append))
;; Use chktex to search for errors in a latex file.
(setcar (cdr (assoc "Check" TeX-command-list)) "chktex -v6 %s")
;; Set a custom item indentation