Emacs 下的 Aspell - 多个词典
我使用 Aspell 作为 Emacs 的拼写检查器。 我知道,作为独立的 aspell 可以处理多个字典(使用 extra-dicts
参数),但是如何在 Emacs 下配置它?
我对 emacs lisp 知之甚少...我可以在 .emacs 文件中提供一些“ispell extra-args”吗?那行得通吗?如果是这样,我真的很欣赏简单的例子 - 我对 lisp 语法和它处理的绝对/相对路径知之甚少。
我需要这个的原因是我有时用波兰语写一些带有英语单词的文档。这使得拼写检查区域的吸引力远低于在文件中使用单一语言的任务。
提前致谢!
I'm using Aspell as a spelling checker for Emacs.
I know that, as a standalone, aspell can handle multpiple dictionaries (using extra-dicts
param), but how to configure it under Emacs?
I know very little of emacs lisp... Could I provide some "ispell extra-args" in .emacs file? Would that work? If so I'd really appreciate simple example - I know very little of lisp syntax and absolute/relative paths it handles and etc.
The reason why I need this is that I sometimes write some documentation in Polish with English words in it. That makes spell-check-region
much less attractive task than it is using single language in a file.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设 aspell 设置为您的
ispell-program-name
(您可以在自定义中执行此操作)。(将这些添加到您的
.emacs
或.emacs.d/init.el
中)您可以将多个词典添加到
ispell-dictionary-alist
(语法有点复杂,请在 Emacs 帮助中获取更多信息:Ch vispell-dictionary-alist
)示例。
您还可以将字典交换绑定到键盘。
例如
I'm assuming that aspell is set as your
ispell-program-name
(you can do this in customize).( Add these to your
.emacs
or.emacs.d/init.el
)You can add multiple dictionaries to the
ispell-dictionary-alist
(syntax is a bit complex, get more info in Emacs help with: C-h vispell-dictionary-alist
)Example.
You could also bind dictionary swapping to the keyboard.
e.g.