emacs - 无需鼠标的 Flyspell

标签 emacs flyspell

如何在不使用鼠标的情况下向 Flyspell 词典中添加单词?我知道,我可以使用常规 ispell.el 绑定(bind) M-$ 并浏览菜单,但是,这需要多次击键。

是否可以将 Flyspell 弹出窗口中的“保存单词”功能绑定(bind)到单个按键?

最佳答案

当您选择选项时 - 按 i 将其添加到您的本地词典中(好吧,无论如何对我来说都是这样:))。

对 ispell.el 的彻底检查表明没有特殊的函数可以做到这一点,但您可以拥有一个自己的函数:

(defun save-ispell-word (word)
  (interactive "sA word you want to add to dictionary ")
  (ispell-send-string (concat "*" word "\n"))
  (setq ispell-pdict-modified-p '(t)))

但它只能在 ispell 次要模式下工作。

关于emacs - 无需鼠标的 Flyspell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11070849/

相关文章:

Emacs ESS 版本的 Clear Console

c - 防止 CEDET 语义解析某些文件类型

c++ - Emacs C++ 模式缩进不正确?

emacs,flyspell,停用 "C-."键绑定(bind)

emacs - 用flyspell标记所有拼写错误的单词,即使在当前 session 期间未写的单词也是如此

emacs - 如何从 ispell 私有(private)词典中删除条目?

php - mumamo-alt-php-tags-mode 默认

regex - 在 Emacs 中重新定义 "sentence"? (句子之间有一个空格,但忽略缩写)

xml - 如何在 emacs 中为所有文件和所有主要模式启用 flyspell 模式?

macos - 无法找到如何解决飞行拼写检查器工作的问题