近日一直在用emacs记一些笔记,上网查了一下如何在emacs上做英文的拼写检查。基本方法是用Aspell。
在ubuntu上试了一下apt get,没有这个东西,然后在synaptic上看了一下,这个工具已经随emacs23安装好了(当时也是用synaptic装的emacs)。
使用方式很简单,改 .emacs 文件,添加这一句
(setq-default ispell-program-name "aspell")
然后重启emacs,在text莫的里面运行
M-x ispell-mode
进入拼写检查,然后打
M-x ispell-buffer
检查整个buffer
根据提示逐个交互的修改拼写错误
完事了再用
M-x ispell-buffer
退出这个flymode
主要参考:林绪虹的文章
http://www.ibm.com/developerworks/cn/linux/l-cn-emacs-spllchk/index.html
http://www.gnu.org/software/emacs/manual/html_node/emacs/Spelling.html