[Top][All Lists]

[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" <address@hidden> 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.

Nikolaj Schumacher

reply via email to

[Prev in Thread] Current Thread [Next in Thread]