XEmacsで日本語を含む文書に対して,aspellを使ってスペル・チェックする方法.
$HOME/.xemacs/init.elに以下の内容を追加する.
(setq-default ispell-program-name "aspell")
(autoload 'ispell "ispell" nil t)
(autoload 'ispell-region "ispell" nil t)
(autoload 'ispell-word "ispell" nil t)
(autoload 'ispell-buffer "ispell" nil t)
(eval-after-load "ispell"
'(setq ispell-skip-region-alist (cons '("[^A-Za-z0-9 -]+")
ispell-skip-region-alist)))
$HOME/.aspell.confに以下の内容を追加する.
lang en_US
後はM-x ispell-bufferなり,M-x ispell-regionでスペル・チェックできる…