From: Perry Smith <pedzsan@gmail.com>
To: C K Kashyap <ckkashyap@gmail.com>
Cc: help-gnu-emacs@gnu.org, pingved@gmail.com
Subject: Re: question about indenting
Date: Fri, 15 Jul 2011 07:49:29 -0500 [thread overview]
Message-ID: <4B844315-239F-4935-8FE6-58C8DCD47779@gmail.com> (raw)
In-Reply-To: <CAGdT1gq9RHL3O_Z1wY_x2RbjLGbqAkV61o3BUjVT6++aJJCgUQ@mail.gmail.com>
[-- 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 --]
next prev parent reply other threads:[~2011-07-15 12:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-15 5:09 question about indenting pingved
2011-07-15 9:04 ` C K Kashyap
2011-07-15 12:49 ` Perry Smith [this message]
2011-07-15 16:54 ` pingved
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B844315-239F-4935-8FE6-58C8DCD47779@gmail.com \
--to=pedzsan@gmail.com \
--cc=ckkashyap@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=pingved@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).