2012-06-17 57 views
2

如何在不使用鼠標的情況下將單詞添加到字典中的flyspell?我知道,我可以使用常規的ispell.el綁定M- $,並通過菜單進行搜索,但是,這需要多個按鍵。不帶鼠標的飛鏢

是否可以將flyspell彈出窗口中的「Save Word」功能綁定到單個鍵上?

回答

2

當你選擇選項 - 按應該將它添加到您的本地字典(好吧,無論如何:))。 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的輔助模式。