* ctrl-x-5-keybinding in dired
@ 2003-11-28 4:17 leo
2003-11-30 19:15 ` Emilio Lopes
0 siblings, 1 reply; 2+ messages in thread
From: leo @ 2003-11-28 4:17 UTC (permalink / raw)
hi there
ok, key binding questions are tiring, but this might be an interesting one:
i want to bind an "dired-find-file-other-frame-function" to Ctrl x 5 o, but
obviously only in dired.
so i should use the "dired-mode-map", but on the other hand i have to use
"ctl-x-5-map", because its a ctrl x 5 binding
so, does anybody know what to do?
thanks, leo
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ctrl-x-5-keybinding in dired
2003-11-28 4:17 ctrl-x-5-keybinding in dired leo
@ 2003-11-30 19:15 ` Emilio Lopes
0 siblings, 0 replies; 2+ messages in thread
From: Emilio Lopes @ 2003-11-30 19:15 UTC (permalink / raw)
"leo" <halloleo@noospaam.myrealbox.com> wrote:
> i want to bind an "dired-find-file-other-frame-function" to Ctrl x 5 o, but
> obviously only in dired.
> so i should use the "dired-mode-map", but on the other hand i have to use
> "ctl-x-5-map", because its a ctrl x 5 binding
You can't have both: either bind it in `ctl-x-5-map' (making
it thus global) or use `dired-mode-map'. You want the latter:
(define-key dired-mode-map (kbd "C-x 5 o") 'dired-find-file-other-frame-function)
Note that `dired-mode-map' must already be defined, so use
the appropriated hook.
--
Emilio C. Lopes
München <48°8'N, 11°34'E>
Is that a Lisp interpreter in your editor, or are you just happy to see me?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-30 19:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-28 4:17 ctrl-x-5-keybinding in dired leo
2003-11-30 19:15 ` Emilio Lopes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).