From f97b5b70e303fd77ddddc387d586296495c79c0d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 6 May 2019 19:39:35 -0400 Subject: [PATCH] tools/flyspell: reduce english-centric defaults Falls back to system defaults, which are a little more reliable. --- modules/tools/flyspell/config.el | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/modules/tools/flyspell/config.el b/modules/tools/flyspell/config.el index 2893f0b67..940666039 100644 --- a/modules/tools/flyspell/config.el +++ b/modules/tools/flyspell/config.el @@ -9,10 +9,9 @@ Since spellchecking can be slow in some buffers, this can be disabled with: ;; -;; Packages +;;; Packages (after! ispell - (setq-default ispell-dictionary "english") (add-to-list 'ispell-extra-args "--dont-tex-check-comments") ;; 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)) (`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)))) + (setq ispell-program-name "hunspell")) (_ (warn "Spell checker not found. Either install `aspell' or `hunspell'")))) -;; `flyspell' (built-in) -(progn +;;;###package flyspell +(progn ; built-in (setq flyspell-issue-welcome-flag nil) (defun +flyspell|inhibit-duplicate-detection-maybe ()