[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: List of current key maps
From: |
Stefan Monnier |
Subject: |
Re: List of current key maps |
Date: |
Sat, 09 Jun 2007 19:53:19 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
> (define-key ess-mode-map [(control ?c) (control ?t)] "Test!")
Typically, the keymap is not defined at startup, so you can't do the above
directly: you have to do it in a hook or somesuch. So a common solution is
to do:
(add-hook 'ess-mode-hook
(lambda ()
(local-set-key [(control ?c) (control ?t)] "Test!")))
-- Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: List of current key maps,
Stefan Monnier <=