在Emacs中的goto文件 [英] goto-file in Emacs

查看:125
本文介绍了在Emacs中的goto文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于vigf命令,emacs中是否有替代?
意味着尝试打开现在的光标下面的文件
如果一个真正的文件名实际上在那里。



谢谢

解决方案

你想要 find-file-at-point 函数别名为 ffap )。默认情况下,它不会被绑定到键上,但是您可以使用

  Mx ffap 

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

 (ffap-bindings)

这将取代许多正常的查找文件键绑定(如 Cx Cf )与 ffap 的版本。有关详细信息,请参阅 ffap.el 中的注释。


Is there a substitute in emacs for the vi "gf" command? meaning try to open the file which is under the cursor right now if a real file name is in fact there.

Thanks

解决方案

You want the find-file-at-point function (which is also aliased to ffap). It's not bound to a key by default, but you can use

M-x ffap

Or, you can put in your .emacs file:

(ffap-bindings)

This will replace many of the normal find-file key bindings (like C-x C-f) with ffap-based versions. See the commentary in ffap.el for details.

这篇关于在Emacs中的goto文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆