Emacs dabbrev-展开整行

Emacs dabbrev-expand for whole line

是否有可能在 emacs 中实现整行补全? 我的意思是类似于 vim 的 C-x C-l - 像 dabbrev-expand 但完成整行。

是的,请看 hippie-exp,它是基础 emacs 的一部分。具体来说,将 try-expand-line 添加到 hippie-expand-try-functions-list。就个人而言,我使用类似于 this one 的修改,首先完成最接近的匹配前缀。