Emacs:一起使用ffap和ido-mode

时间:2012-07-15 19:42:48

标签: emacs ido

我曾与find-file-at-point合作打开文件,网址等。我的.emacs包含

(require 'ffap)
(ffap-bindings)

我发现了ido-mode,我尝试将其与

一起使用
(ido-mode 1); enable ido-mode
(setq ido-enable-flex-matching t); flexibly match names
(setq ido-everywhere t); use ido-mode everywhere, in buffers and for finding files
(setq ido-use-filename-at-point 'guess); for find-file-at-point

事实证明C-x C-f用于查找文件不会激活ido-mode(我没有看到文件名的典型建议,就像我在执行C-x b时对缓冲区所做的那样)。当我注释掉与ffap相关的两行时,它会按预期工作,但是,我也想使用ffap

这可能吗?

假设该点在URL上。如果C-x C-f C-f(“旧”完成样式的回退)激活ffap并因此提供打开URL,那将是很棒的。

1 个答案:

答案 0 :(得分:2)

是 - 您需要重新绑定您使用的功能。

你在ffap中找到你需要的功能,然后像那样重新绑定它们:

(global-set-key [end]'函数)

(您使用组合更改结束键。)

有很多方法可以重新绑定一个键,但首先要开始查看ffap中对你有用的函数。

相关问题