From: Paul Whitfield <NoSpam@iinet.net.au>
Subject: Re: Hi, group. When I type some C code such as: if(1) { a = 0; } The space before 'a=0' is only two characters, how to make it 8 characters ? Thanks. 'Indent' question in C-mode
Date: Fri, 19 Jan 2007 13:18:10 +0800 [thread overview]
Message-ID: <45b045bb$0$19996$5a62ac22@per-qv1-newsreader-01.iinet.net.au> (raw)
In-Reply-To: <1169143219.492572.61130@m58g2000cwm.googlegroups.com>
volunteers@gmail.com wrote:
> Hi, group.
> When I type some C code such as:
> if(1)
> {
> a = 0;
> }
>
> The space before 'a=0' is automatic two characters, how to make it 8
> characters ? Thanks.
>
> Vol
>
This is set by
c-basic-offset.
Which can be customised or set in your .emacs.el.
This sets the basic offset "unit" for all c-mode indenting.
Regards
Paul
prev parent reply other threads:[~2007-01-19 5:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-18 18:00 Hi, group. When I type some C code such as: if(1) { a = 0; } The space before 'a=0' is only two characters, how to make it 8 characters ? Thanks. 'Indent' question in C-mode volunteers
2007-01-18 20:45 ` Radamanthe
2007-01-19 5:18 ` Paul Whitfield [this message]
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='45b045bb$0$19996$5a62ac22@per-qv1-newsreader-01.iinet.net.au' \
--to=nospam@iinet.net.au \
/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).