gpt4 book ai didi

emacs - Emacs 中的 goto 文件

转载 作者:行者123 更新时间:2023-12-03 01:13:10 25 4
gpt4 key购买 nike

emacs 中有 vi gf 命令的替代品吗?我的意思是打开当前光标下的文件(如果确实存在真实文件名)。

最佳答案

您需要 find-file-at-point 函数(也称为 ffap)。默认情况下它没有绑定(bind)到 key ,但您可以使用

M-x ffap

或者,您可以放入 .emacs 文件:

(ffap-bindings)

这将用基于 ffap 的版本替换许多普通的 find-file 键绑定(bind)(例如 C-x C-f)。有关详细信息,请参阅 ffap.el 中的评论。

关于emacs - Emacs 中的 goto 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/259354/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com