Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs in place filename / path insertion

Tags:

emacs

I am looking for a way to insert a filename/path inline while editing. Something like an inline ido-style file selection would be perfect. Is there anything like that out there?

like image 910
re5et Avatar asked Feb 26 '11 20:02

re5et


1 Answers

I always use comint-dynamic-complete-filename for this. This does not seem to be loaded by default, but provided by comint-mode. Thus you could put something like

(autoload 'comint-dynamic-complete-filename "comint" nil t)
(global-set-key "\M-]" 'comint-dynamic-complete-filename)

in your ~/.emacs or the like. Use your own prefered keybinding of course.

like image 154
pft Avatar answered Sep 19 '22 10:09

pft