【发布时间】:2012-12-07 03:04:59
【问题描述】:
如果我使用dabbrev-expand 进行扩展,Emacs 会搜索当前缓冲区,然后搜索具有相同模式的其他缓冲区。这由dabbrev-friend-buffer-function 处理,默认设置为dabbrev--same-major-mode-p。
这很好用,但我想使用hippie-expand。
(setq hippie-expand-try-functions-list
'(try-expand-dabbrev
try-expand-dabbrev-all-buffers))
这会从所有缓冲区中提取完成,甚至是与我当前的主要模式不匹配的缓冲区。
我如何才能使用 hippie-expand 与仅来自使用与当前缓冲区相同主模式的缓冲区的 dabbrev 补全?
【问题讨论】:
标签: emacs autocomplete elisp emacs24