【问题标题】:Flyspell without a mouse没有鼠标的 Flyspell
【发布时间】:2012-06-17 11:10:42
【问题描述】:

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

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

【问题讨论】:

    标签: emacs flyspell


    【解决方案1】:

    当您选择选项时 - 按 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 minor 模式下工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-06
      • 2017-02-20
      • 2017-12-02
      相关资源
      最近更新 更多