I use flyspell
hunspell
for checking my spelling mistakes in Emacs. Recently, when I run M-x flyspell-mode
in .org
or .tex
files I got the following error:
Error enabling Flyspell mode:
(hunspell exited with signal Abort trap: 6)
I didn't get this error in the past, and I think I have changed nothing from my config.
My .emacs
file for latex
, ispell
and hunspell
are:
;; LATEX
;;
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(setq ispell-program-name "hunspell") ;; Dictionaries
(add-hook 'LaTeX-mode-hook 'visual-line-mode)
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
(add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)
(setq TeX-PDF-mode t)
(setq TeX-output-view-style
(quote
(("^pdf$" "." "evince -f %o")
("^html?$" "." "iceweasel %o"))))
;;
;;ispell config
;;
(setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
(setq exec-path (append exec-path '("/usr/local/bin")))
How can I debug this?
UPDATE
I solved the problem by:
upgrade brew
removing:
(setq ispell-program-name "hunspell") ;; Dictionaries
;;
;;ispell config
;;
(setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
(setq exec-path (append exec-path '("/usr/local/bin")))
- and adding:
(setq ispell-program-name "hunspell")
(setq ispell-local-dictionary "en_GB")
(setq ispell-local-dictionary-alist
'(("en_GB" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil nil nil utf-8)))