Set default ispell-dictionary sooner #630

This makes it easier to change and won't override user's customizations.
This commit is contained in:
Henrik Lissner
2018-06-01 02:23:24 +02:00
parent 3bdb3d4e5d
commit 4b0e3af424

View File

@ -14,6 +14,10 @@
;; Plugins
;;
;; Default language setting.
(defvar ispell-dictionary "english")
(after! tex
;; Set some varibles to fontify common LaTeX commands.
(load! "+fontification")
@ -69,8 +73,6 @@
(add-hook 'TeX-update-style-hook #'rainbow-delimiters-mode)
(when (featurep! :feature spellcheck)
(add-hook 'LaTeX-mode-hook #'flyspell-mode))
;; Default language setting.
(setq ispell-dictionary "english")
;; 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