tools/flyspell: reduce english-centric defaults

Falls back to system defaults, which are a little more reliable.
This commit is contained in:
Henrik Lissner 2019-05-06 19:39:35 -04:00
parent 8e6953b3ac
commit f97b5b70e3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -9,10 +9,9 @@ Since spellchecking can be slow in some buffers, this can be disabled with:
;; ;;
;; Packages ;;; Packages
(after! ispell (after! ispell
(setq-default ispell-dictionary "english")
(add-to-list 'ispell-extra-args "--dont-tex-check-comments") (add-to-list 'ispell-extra-args "--dont-tex-check-comments")
;; Enable either aspell or hunspell. ;; Enable either aspell or hunspell.
@ -41,24 +40,13 @@ Since spellchecking can be slow in some buffers, this can be disabled with:
(advice-add #'flyspell-auto-correct-word :around #'+flyspell*setup-ispell-extra-args)) (advice-add #'flyspell-auto-correct-word :around #'+flyspell*setup-ispell-extra-args))
(`hunspell (`hunspell
(setq ispell-program-name "hunspell" (setq ispell-program-name "hunspell"))
;; Don't use `ispell-cmd-args', it isn't respected with hunspell.
;; Hack ispell-local-dictionary-alist instead.
ispell-dictionary-alist
`((,ispell-local-dictionary
"[[:alpha:]]"
"[^[:alpha:]]"
"[']"
nil
("-d" ,ispell-local-dictionary)
nil
utf-8))))
(_ (warn "Spell checker not found. Either install `aspell' or `hunspell'")))) (_ (warn "Spell checker not found. Either install `aspell' or `hunspell'"))))
;; `flyspell' (built-in) ;;;###package flyspell
(progn (progn ; built-in
(setq flyspell-issue-welcome-flag nil) (setq flyspell-issue-welcome-flag nil)
(defun +flyspell|inhibit-duplicate-detection-maybe () (defun +flyspell|inhibit-duplicate-detection-maybe ()