help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Find File At Point` with IDO


From: Jorge A. Alfaro-Murillo
Subject: Re: Using Find File At Point` with IDO
Date: Tue, 14 Jul 2015 10:39:37 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Raffaele Ricciardi writes:

Can you have *Find File At Point* commands use IDO commands when there is neither a file nor a directory at point? The following code should accomplish such behaviour, shouldn't it? (ido-mode) (require 'ffap) (setq ffap-file-finder 'ido-find-file) (setq ffap-directory-finder 'ido-dired) (ffap-bindings) Yet, neither `C-x C-f (find-file-at-point)` nor `C-x d (dired-at-point)` call the corresponding IDO command. Thank you.

(ffap-bindings) redefines the keybindings, so calling it after ido will change the keybindings that ido had. This works for me for files (I open directories with C-x C-f C-j):

#+BEGIN_SRC emacs-lisp
 (ido-mode)
 (setq ido-use-url-at-point t)
 (setq ido-use-filename-at-point 'guess)
#+END_SRC

Best,
--
Jorge.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]