Capture to complete tab in emacs login (interactive)?

In emacs, the following defines a function that, when invoked interactively, prompts the user for a file name:

(defun do-something (filename )
  (interactive "FFilename: ")
  ...
  )

When a user enters a file name, he can use tabs, etc. Does anyone know if there are any hooks in this file input code? In particular, I would like to modify the find-file command so that symbolic links to windows (which appear as "foo.lnk") automatically follow their target if you click on the tab.

I am currently using w32-symlinks , which means that at least if I click on the link, it will open the target in diredit. But I would rather be able to simply execute a tab on the file I'm looking at, instead of opening diredit and then doing the second find-file command.

+3
source share
2 answers

Before reinventing the wheel, perhaps put (ido-mode t) in your .emacs file and see if it does what you want.

I do not use windows, but I use ido, and it is much better than the default.

+2
source

completing-read interactive - . IOW, .

read-file-name-function , (, , ). . minibuffer.el.

+1

Source: https://habr.com/ru/post/1729453/


All Articles