From 8b1521f0069d637d4071ed55bc83aeb7031402d9 Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Thu, 7 Nov 2019 11:41:57 +0100 Subject: [PATCH] Use hunspell instead of aspell --- init.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 4d033ea..aa5c40d 100644 --- a/init.el +++ b/init.el @@ -163,9 +163,12 @@ (use-package flyspell :config - (setq ispell-program-name "aspell" ; use aspell instead of ispell - ispell-extra-args '("--sug-mode=ultra")) - (ispell-change-dictionary "british") + (setq ispell-program-name "hunspell") + (setq ispell-local-dictionary "en_GB") + (setq ispell-local-dictionary-alist + ;; Please note the list `("-d" "en_US")` contains ACTUAL parameters passed to hunspell + ;; You could use `("-d" "en_US,en_US-med")` to check with multiple dictionaries + '(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_GB") nil utf-8))) (add-hook 'text-mode-hook #'flyspell-mode) (add-hook 'prog-mode-hook #'flyspell-prog-mode) (global-set-key (kbd "") 'ispell-word)