[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs equivalent of vi %
From: |
Nikolaj Schumacher |
Subject: |
Re: emacs equivalent of vi % |
Date: |
Thu, 14 Aug 2008 01:27:22 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) |
"Rustom Mody" <rustompmody@gmail.com> wrote:
> Roughly I know what to do:
>
> Bind the character '%' to
> (file-name-nondirectory (buffer-file-name))
> in the keymap that is in effect when shell-command ( M-! ) is running.
>
> Im only not sure which keymap (and/or how to find it)
You can find it with M-x apropos.
The minibuffer-.*-map variables look interesting.
Unfortunately I think there's no guarantee it will work everywhere, as
other commands might override the keymap. You might be able to override
them once more by hooking into: `minibuffer-setup-hook'.
Also, note that you'll need to make an interactive function out of the
form to bind it to a key.
regards,
Nikolaj Schumacher
- emacs equivalent of vi %, Rustom Mody, 2008/08/13
- Re: emacs equivalent of vi %, Lennart Borgman (gmail), 2008/08/13
- Re: emacs equivalent of vi %, Rustom Mody, 2008/08/13
- Re: emacs equivalent of vi %, Lennart Borgman (gmail), 2008/08/13
- Re: emacs equivalent of vi %, Rustom Mody, 2008/08/13
- Re: emacs equivalent of vi %,
Nikolaj Schumacher <=
- Re: emacs equivalent of vi %, Nikolaj Schumacher, 2008/08/13
- Re: emacs equivalent of vi %, Lennart Borgman (gmail), 2008/08/13
- Re: emacs equivalent of vi %, Kevin Rodgers, 2008/08/13
- Re: emacs equivalent of vi %, Rustom Mody, 2008/08/14
- Re: emacs equivalent of vi %, Lennart Borgman (gmail), 2008/08/14
- Re: emacs equivalent of vi %, Kevin Rodgers, 2008/08/14
- Message not available
- Re: emacs equivalent of vi %, Jason Rumney, 2008/08/13
RE: emacs equivalent of vi %, Arnaldo Mandel, 2008/08/13