Use hunspell instead of aspell
This commit is contained in:
parent
3df7402ebb
commit
8b1521f006
1 changed files with 6 additions and 3 deletions
9
init.el
9
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 "<f8>") 'ispell-word)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue