如何在不使用鼠标的情况下向 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/