[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: subsitute for current file name in buffer in emacs
From: |
Drew Adams |
Subject: |
RE: subsitute for current file name in buffer in emacs |
Date: |
Sat, 26 Jan 2008 08:29:37 -0800 |
> suppose i need to use the file name which is currently present in buffer
> opened before me in emacs ..
> now suppose it is a .cpp file say abc.cpp
> now to compile this file i have to use ...\g++ abc.cpp
>
> now instead for putting abc.cpp is there a variable or command which
> substitutes itself as the file name in current buffer when used ?
ffap.el is one way (but some people find it overbearing).
http://www.emacswiki.org/cgi-bin/wiki/FindFileAtPoint
If you use Icicles, you can always use `M-.' to yank the file name (or
whatever) that is under the cursor into the minibuffer.
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Inserting_Text_from_Cursor