[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting auto-indentation of braces
From: |
Kevin Rodgers |
Subject: |
Re: Setting auto-indentation of braces |
Date: |
Wed, 18 Feb 2009 21:07:25 -0700 |
User-agent: |
Thunderbird 2.0.0.19 (Macintosh/20081209) |
Peter Dyballa wrote:
Am 18.02.2009 um 09:44 schrieb Juha Nieminen:
Does this mean there's no way in emacs to remap keys (so that a key
combination, such as "\M-7", is made equivalent to pressing some other
key or key combination, such as "{")?
One way is to define it as a macro: (global-set-key (kbd "M-7") "{")
or (local-set-key (kbd "M-7") "{") within an appropriate hook.
Maybe you just need to understand that a minor-mode keymap overrides a
global-mode keymap when in some buffer this minor-mode is active ...
(meaning: apply your changes to the keymap owned by that C mode)
I think you mean major-mode keymap there, although minor-mode keymaps
are relevant as well. For a precise explanation, see the and the Local
Keymaps node of the Emacs manual and the Searching [the Active] Keymaps
node of the Emacs Lisp manual.
--
Kevin Rodgers
Denver, Colorado, USA
- Setting auto-indentation of braces, Juha Nieminen, 2009/02/10
- Re: Setting auto-indentation of braces, Juha Nieminen, 2009/02/16
- Re: Setting auto-indentation of braces, Juha Nieminen, 2009/02/18
- Re: Setting auto-indentation of braces, Peter Dyballa, 2009/02/18
- Re: Setting auto-indentation of braces,
Kevin Rodgers <=
- Message not available
- Re: Setting auto-indentation of braces, Juha Nieminen, 2009/02/23
- Re: Setting auto-indentation of braces, Teemu Likonen, 2009/02/23
- Re: Setting auto-indentation of braces, Kevin Rodgers, 2009/02/23
- Message not available
- Re: Setting auto-indentation of braces, Juha Nieminen, 2009/02/24
- Re: Setting auto-indentation of braces, Juha Nieminen, 2009/02/26
- Message not available
- Re: Setting auto-indentation of braces, Juha Nieminen, 2009/02/19
- Re: Setting auto-indentation of braces, Peter Dyballa, 2009/02/19
Re: Setting auto-indentation of braces, tyler, 2009/02/18
Message not available
Re: Setting auto-indentation of braces, Miles Bader, 2009/02/19