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)