unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Using Find File At Point` with IDO
@ 2015-07-14  8:57 Raffaele Ricciardi
  2015-07-14 14:39 ` Jorge A. Alfaro-Murillo
  0 siblings, 1 reply; 2+ messages in thread
From: Raffaele Ricciardi @ 2015-07-14  8:57 UTC (permalink / raw)
  To: help-gnu-emacs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Using Find File At Point` with IDO
  2015-07-14  8:57 Using Find File At Point` with IDO Raffaele Ricciardi
@ 2015-07-14 14:39 ` Jorge A. Alfaro-Murillo
  0 siblings, 0 replies; 2+ messages in thread
From: Jorge A. Alfaro-Murillo @ 2015-07-14 14:39 UTC (permalink / raw)
  To: help-gnu-emacs

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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-14 14:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14  8:57 Using Find File At Point` with IDO Raffaele Ricciardi
2015-07-14 14:39 ` Jorge A. Alfaro-Murillo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).