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: Miles Bader
Subject: Re: Setting auto-indentation of braces
Date: Thu, 19 Feb 2009 20:31:37 +0900

What you want to do is just ask emacs "What command is the { key bound to",
and then bind your new key to the same command.

To see what the { key is bound to, you can use the "describe-key-briefly"
command, normally bound to "C-h c" (of course you should do it while in the
C file's buffer):

   C-h c {

(I see in my emacs, it's bound to "c-electric-brace" in c-mode)

Emacs has a lot of useful commands for getting information, most of
which start with "C-h" (do C-h C-h to see more).

-Miles

-- 
I'm beginning to think that life is just one long Yoko Ono album; no rhyme
or reason, just a lot of incoherent shrieks and then it's over.  --Ian Wolff


reply via email to

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