diff --git a/README.md b/README.md index 112fe9e..15b4d0f 100644 --- a/README.md +++ b/README.md @@ -1290,6 +1290,13 @@ To configure **flyspell**, add the following to `~/.emacs.d/post-init.el`: ;; Set the ispell program name to aspell (ispell-program-name "aspell") + ;; Define the "en_US" spell-check dictionary locally, telling Emacs to use + ;; UTF-8 encoding, match words using alphabetic characters, allow apostrophes + ;; inside words, treat non-alphabetic characters as word boundaries, and pass + ;; -d en_US to the underlying spell-check program. + (setq ispell-local-dictionary-alist + '(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_US") nil utf-8))) + ;; Configures Aspell's suggestion mode to "ultra", which provides more ;; aggressive and detailed suggestions for misspelled words. The language ;; is set to "en_US" for US English, which can be replaced with your desired @@ -1303,7 +1310,7 @@ To configure **flyspell**, add the following to `~/.emacs.d/post-init.el`: :ensure nil :commands flyspell-mode :hook - ((prog-mode . flyspell-prog-mode) + (; (prog-mode . flyspell-prog-mode) (text-mode . (lambda() (if (or (derived-mode-p 'yaml-mode) (derived-mode-p 'yaml-ts-mode)