help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: define-key minibuffer-mode-map


From: Kevin Rodgers
Subject: Re: define-key minibuffer-mode-map
Date: Wed, 29 Mar 2006 13:54:39 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

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





reply via email to

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