* question about indenting
@ 2011-07-15 5:09 pingved
2011-07-15 9:04 ` C K Kashyap
0 siblings, 1 reply; 4+ messages in thread
From: pingved @ 2011-07-15 5:09 UTC (permalink / raw)
To: help-gnu-emacs
Hello to all!
How i can indent strings in any mode, c-mode for example like this:
void Test(void) {
(3space)DWORD abc;
(4space)exit(0);
(4space){
(4space)(3space)DWORD a;
(4space)(4space)exit(0);
(4space)}
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question about indenting
2011-07-15 5:09 question about indenting pingved
@ 2011-07-15 9:04 ` C K Kashyap
2011-07-15 12:49 ` Perry Smith
0 siblings, 1 reply; 4+ messages in thread
From: C K Kashyap @ 2011-07-15 9:04 UTC (permalink / raw)
To: pingved; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 367 bytes --]
>
> Hello to all!
> How i can indent strings in any mode, c-mode for example like this:
>
> void Test(void) {
> (3space)DWORD abc;
> (4space)exit(0);
> (4space){
> (4space)(3space)DWORD a;
> (4space)(4space)exit(0);
> (4space)}
> }
>
>
>
You could select the region (using the mouse or M-h) and then press M-C-\ -
this should indent the code.
Regards,
Kashyap
[-- Attachment #2: Type: text/html, Size: 602 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question about indenting
2011-07-15 9:04 ` C K Kashyap
@ 2011-07-15 12:49 ` Perry Smith
2011-07-15 16:54 ` pingved
0 siblings, 1 reply; 4+ messages in thread
From: Perry Smith @ 2011-07-15 12:49 UTC (permalink / raw)
To: C K Kashyap; +Cc: help-gnu-emacs, pingved
[-- Attachment #1: Type: text/plain, Size: 844 bytes --]
On Jul 15, 2011, at 4:04 AM, C K Kashyap wrote:
> Hello to all!
> How i can indent strings in any mode, c-mode for example like this:
>
> void Test(void) {
> (3space)DWORD abc;
> (4space)exit(0);
> (4space){
> (4space)(3space)DWORD a;
> (4space)(4space)exit(0);
> (4space)}
> }
>
>
>
> You could select the region (using the mouse or M-h) and then press M-C-\ - this should indent the code.
I think he is asking about how to set up c mode. Noticed that his variable declarations are indented differently.
If you do M-x customize, then pick Programming, Languages, C you will get to a list of customizable options that affect how things are indented, etc.
I don't see something specific for variable declarations though. Perhaps someone else will chime in with some suggestions.
Good luck
Perry
[-- Attachment #2: Type: text/html, Size: 1388 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question about indenting
2011-07-15 12:49 ` Perry Smith
@ 2011-07-15 16:54 ` pingved
0 siblings, 0 replies; 4+ messages in thread
From: pingved @ 2011-07-15 16:54 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/html, Size: 2054 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-07-15 16:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-15 5:09 question about indenting pingved
2011-07-15 9:04 ` C K Kashyap
2011-07-15 12:49 ` Perry Smith
2011-07-15 16:54 ` pingved
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).