* 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
@ 2007-01-18 18:00 volunteers
2007-01-18 20:45 ` Radamanthe
2007-01-19 5:18 ` Paul Whitfield
0 siblings, 2 replies; 3+ messages in thread
From: volunteers @ 2007-01-18 18:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* 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
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
1 sibling, 0 replies; 3+ messages in thread
From: Radamanthe @ 2007-01-18 20:45 UTC (permalink / raw)
volunteers@gmail.com wrote:
> 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.
You can do this:
(setq tab-stop-list '(8 16 24 32 40 48 56 64 72)) ;and so on
--
R.N.
^ permalink raw reply [flat|nested] 3+ messages in thread
* 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
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
1 sibling, 0 replies; 3+ messages in thread
From: Paul Whitfield @ 2007-01-19 5:18 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-19 5:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.