比如我编辑一个json的文件,里面需要写文件名。/root/xxx/yy spacemacs中它可以自动补全和提示的。但是我现在这个emacs配置中没有这个提示了。不知道哪个配置是关于这个特性的。
哪位给个提示?多谢。
比如我编辑一个json的文件,里面需要写文件名。/root/xxx/yy spacemacs中它可以自动补全和提示的。但是我现在这个emacs配置中没有这个提示了。不知道哪个配置是关于这个特性的。
哪位给个提示?多谢。
你的配置不会没有版本管理吧? 翻翻之前咋配置的。
spacemacs 中有这个功能。我在spacemacs中加的配置,自己从来没有加过这一项。所以搞不懂是哪儿生效的。
看看 spacemacs 关于补全这一块儿用的是哪些包,关键词 complete,completion 或者接近的,搜一搜 spacemacs 的配置里是啥
具体包的话可能是 company 或者 corfu,得自己找 spacemacs 装了哪些包
好吧。我看看。这个功能挺好用的。我还以为是emacs自带的功能。
其实 Emacs 真的自带补全(hippie-expand),只是没有弹出框UI。 就像 Vim 有 omni 补全但大家还是用第三方插件一样。
目前为止,我只需要能自动补全文件名路径名就可以了。也可能是开了emacs自带的什么设置。
company-files 加上这个补全后端
company-files
吧.
hippie-expand
也支持补全文件名和路径,
hippie-expand-try-functions-list is a variable defined in
hippie-exp.el.gz.
Value in #<buffer init-lisp.el>
(try-complete-lisp-symbol-partially try-complete-lisp-symbol try-complete-file-name-partially try-complete-file-name try-expand-dabbrev try-expand-dabbrev-all-buffers try-expand-dabbrev-from-kill)
Original Value
(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)
多谢几位。应该就是company-files了。我试试。。。