尝试将 Flyspell 与 LaTeX 文件一起使用。设置如下所示:
(require 'ispell)
(setq ispell-program-name "/usr/local/bin/hunspell") ;; From Homebrew, version 1.4.1
(add-to-list 'ispell-local-dictionary-alist '("de_DE_OLDSPELL" "[[:alpha:]]" "[^[:alpha:]]" "[']" t ("-d" "de_DE_OLDSPELL") nil iso-8859-1))
(setq ispell-dictionary "de_DE_OLDSPELL")
(add-hook 'text-mode-hook 'turn-on-flyspell)
打开文本(或 LaTeX)文件时不会自动加载,但手动加载时工作正常。如何让 Flyspell 自动加载?可能是一个简单的答案,但我已经为此转了一段时间。