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

[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





reply via email to

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