emacs有很好的自动补全的功能,默认的是有 m-/ 可以补全一个在buffer里出现的单词。
把下面的代码添加到你的.emacs 里,可以补全更多的东西。具体的意思可以看emacswiki里的
解释
(global-set-key "/M- " 'hippie-expand)
(setq hippie-expand-try-functions-list
'(try-complete-file-name-partially
try-complete-file-name
try-expand-all-abbrevs
try-expand-list
try-expand-line
try-expand-dabbrev
try-expand-dabbrev-all-buffers
try-expand-dabbrev-from-kill
try-complete-lisp-symbol-partially
try-complete-lisp-symbol))
自动补全
最新推荐文章于 2024-06-25 10:03:33 发布