2012-06-17 59 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的辅助模式。