flyspell with hunspell error complaining about utf8
Hi,
Does anyone have also an error when using flyspell with hunspell (inside
emacs of course)?
I have the following error when activate flyspell-mode (with hunspell
set as the default dictionnary):
"Error enabling Flyspell mode:
(UTF-8)"
My flyspell configuration (below) worked flawless for years.
(if (file-exists-p "/usr/bin/hunspell")
(progn
(setq ispell-program-name "hunspell")
(eval-after-load "ispell"
'(progn (defun ispell-get-coding-system () 'utf-8)))))
;(setq ispell-dictionary "francais")
(setq flyspell-sort-corrections nil)
(global-set-key [f2] 'flyspell-mode)
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(add-hook 'mail-mode-hook 'flyspell-mode)
;(add-hook 'org-mode-hook 'flyspell-mode)
(global-set-key
[f3]
(lambda ()
(interactive)
(ispell-change-dictionary "francais")))
(global-set-key
[f4]
(lambda ()
(interactive)
(ispell-change-dictionary "english")))
Reply to: