lang/latex: enable flyspell-mode after local-vars

Gives setq hooks and file/directory-local variables the opportunity to
take effect before flyspell activates.
This commit is contained in:
Henrik Lissner 2018-10-06 20:56:18 -04:00
parent 06cf518af8
commit 675f4fa821
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -65,7 +65,7 @@ If no viewers are found, `latex-preview-pane' is used.")
;; Enable rainbow mode after applying styles to the buffer
(add-hook 'TeX-update-style-hook #'rainbow-delimiters-mode)
(when (featurep! :feature spellcheck)
(add-hook 'TeX-mode-hook #'flyspell-mode :append))
(add-hook 'TeX-mode-local-vars-hook #'flyspell-mode))
;; All these excess pairs dramatically slow down typing in latex buffers, so
;; we remove them. Let snippets do their job.
(after! smartparens-latex