emacs Flyspell-mode 中的个人词典
我想让 Flyspell 知道我经常使用的某些单词,例如外国专有名称等。但我不希望 Flyspell 认为这个列表是一个完整的字典;相反,我希望它采用此列表及其默认字典的并集。
我该怎么做?
I'd like to make flyspell aware of certain words I use frequently--like foreign proper names, etc. But I don't want flyspell to think that this list is a complete dictionary; rather I'd like it to take the union of this list and its default dictionary.
How can I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我了解,flyspell 是一种突出显示拼写错误的动态小模式。它使用 ispell (或任何您设置为
ispell-program-name
)来执行实际的拼写。当我纠正 Flyspell 中的单词时,我可以将它们添加到个人词典中。这是选项之一。
您是否正在寻求一种预先填充您的个人词典的方法? (在这种情况下,我们需要知道您使用什么拼写检查器,ispell?aspell?)
您是否在寻求一种在个人词典之间切换的方法?如果是这样,
另请参阅emacs 手册中的拼写。 (以及
Ch v ispell-personal-dictionary
)当然,这假设字典格式正确。我认为个人词典本质上只是单词列表,但不知道是否必须排序,或者格式上还有其他要求。As I understand it, flyspell is the on-the-fly minor mode that highlights misspellings. It uses ispell (or whatever you've set as
ispell-program-name
) to do the actual spelling.When I correct words in flyspell, I can add them to a personal dictionary. It's one of the options.
Are you asking for a way to pre-populate your personal dictionary? (In which case, we need to know what spell checker you use, ispell? aspell?)
Are you asking for a way to switch between personal dictionaries? If so,
See also Spelling in the emacs manual. (And
C-h v ispell-personal-dictionary
) Of course, that assumes a correctly formatted dictionary. I think personal dictionaries are essentially just word lists, but I don't know whether they have to be sorted, or maybe there are other requirements on the format.