【问题标题】:Emacs ispell goto previous word?Emacs ispell goto 上一个单词?
【发布时间】:2013-07-07 07:53:57
【问题描述】:

因为我正在使用 M-x ispell 来检查 LaTeX 代码 我使用 SPC 来跳过许多不应更正的条目。 但有时我会跳过一个实际拼错的单词。 用ispell返回上一个单词的关键是什么?

【问题讨论】:

    标签: emacs ispell


    【解决方案1】:

    我检查了 ispell.el 的源代码,不幸的是,它似乎没有键绑定(键实际上是硬编码在函数 ispell-command-loop 中)。作为一个快速破解,如果您不介意缓冲区本地标记环混乱,您可以执行以下操作:

    (defadvice ispell-command-loop (after leave-breadcrumbs activate)
      "Leave a trail in the mark-ring when waiting for user input"
      (push-mark (point) t))
    

    然后您可以随时使用 C-u C-SPC 回到以前的错误。或者,您可以为此功能创建自己的标记环。

    【讨论】:

      猜你喜欢
      • 2013-06-04
      • 2013-06-12
      • 1970-01-01
      • 2014-01-03
      • 1970-01-01
      • 2015-01-22
      • 1970-01-01
      • 1970-01-01
      • 2014-01-03
      相关资源
      最近更新 更多