unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* define-key minibuffer-mode-map
@ 2006-03-29 18:39 Florian Kaufmann
  2006-03-29 20:54 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Kaufmann @ 2006-03-29 18:39 UTC (permalink / raw)


Hello

I try to change the keybindings for the minibuffer. I put the following
in my init.el

(add-hook 'minibuffer-mode-hook
          '(lambda ()
             (define-key minibuffer-mode-map [(control j)]
'backward-char)
             (define-key minibuffer-mode-map [(control l)]
'forward-char) ))

But it doesn't seem to work. If I'm in the minibuffer invoked trough a
grep-find, C-j still exits the minibuffer. Has anybody an idea what
went wrong?

Thank you & greetings

Flo

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: define-key minibuffer-mode-map
  2006-03-29 18:39 define-key minibuffer-mode-map Florian Kaufmann
@ 2006-03-29 20:54 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2006-03-29 20:54 UTC (permalink / raw)


Florian Kaufmann wrote:
> I try to change the keybindings for the minibuffer. I put the following
> in my init.el
> 
> (add-hook 'minibuffer-mode-hook
>           '(lambda ()
>              (define-key minibuffer-mode-map [(control j)]
> 'backward-char)
>              (define-key minibuffer-mode-map [(control l)]
> 'forward-char) ))
> 
> But it doesn't seem to work. If I'm in the minibuffer invoked trough a
> grep-find, C-j still exits the minibuffer. Has anybody an idea what
> went wrong?

;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.

Where did you get the idea that there is a hook called
minibuffer-mode-hook and a keymap called minibuffer-mode-map (or a mode
called minibuffer-mode)?

Try minibuffer-setup-hook, and use local-set-key (which does not take a
keymap argument) instead of define-key.

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-29 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-29 18:39 define-key minibuffer-mode-map Florian Kaufmann
2006-03-29 20:54 ` Kevin Rodgers

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).