2013-07-07 43 views
4

由於我使用M-x ispell檢查LaTeX代碼 我使用SPC跳過很多不應更正的條目。 但是,我有時會跳過一個實際拼寫錯誤的單詞。 返回ispell到上一個單詞的關鍵是什麼?Emacs ispell goto previous word?

回答

2

我檢查了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)) 

然後你就可以隨時回到CU的C-SPC以前的錯誤。或者,您可以爲此功能創建自己的標記環。