feature/spellcheck: minor reformatting

This commit is contained in:
Henrik Lissner 2018-08-02 16:40:47 +02:00
parent 7c4a353228
commit 5f1618e7a1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -8,16 +8,14 @@ Since spellchecking can be slow in some buffers, this can be disabled with:
(setq-hook! 'LaTeX-mode-hook +spellcheck-immediately nil)") (setq-hook! 'LaTeX-mode-hook +spellcheck-immediately nil)")
;; `ispell' ;; `ispell'
(setq ispell-dictionary "english") (setq ispell-dictionary "english"
ispell-list-command "--list"
ispell-extr-args '("--dont-tex-check-comments"))
(def-package! flyspell ; built-in (def-package! flyspell ; built-in
:defer t :defer t
:init :init (add-hook 'flyspell-mode-hook #'+spellcheck|immediately)
(add-hook 'flyspell-mode-hook #'+spellcheck|immediately)
:config :config
(setq ispell-list-command "--list"
ispell-extr-args '("--dont-tex-check-comments"))
(defun +spellcheck|immediately () (defun +spellcheck|immediately ()
"Spellcheck the buffer when `flyspell-mode' is enabled." "Spellcheck the buffer when `flyspell-mode' is enabled."
(when (and flyspell-mode +spellcheck-immediately) (when (and flyspell-mode +spellcheck-immediately)