* What kind of C++ coding style?
@ 2009-10-26 3:02 Water Lin
2009-10-26 10:56 ` Jeff Clough
[not found] ` <mailman.9491.1256554593.2239.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: Water Lin @ 2009-10-26 3:02 UTC (permalink / raw)
To: help-gnu-emacs
I am using Emacs to edit C++ code, but right now the default C++ coding
style of my Emacs is very strange which has just two blank space for
each line.
So, I want to know which kind of C++ coding style is good for Emacs? Any
elisp file?
Thanks
Water Lin
--
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What kind of C++ coding style?
2009-10-26 3:02 What kind of C++ coding style? Water Lin
@ 2009-10-26 10:56 ` Jeff Clough
[not found] ` <mailman.9491.1256554593.2239.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Clough @ 2009-10-26 10:56 UTC (permalink / raw)
To: help-gnu-emacs
From: Water Lin <WaterLin@ymail.invalid>
Date: Mon, 26 Oct 2009 11:02:59 +0800
> I am using Emacs to edit C++ code, but right now the default C++ coding
> style of my Emacs is very strange which has just two blank space for
> each line.
If this is unacceptable, you can set the variable c-basic-offset to
the number of columns you want.
;; Use mod-4 indent in C modes
(setq c-basic-offset 4)
> So, I want to know which kind of C++ coding style is good for Emacs? Any
> elisp file?
I'm not sure what you are asking for here. If you are talking about
how the code looks on your screen, tell us what isn't doing what you
want it to and we can point you in the right direction.
Jeff
----------
Author of the Genesys System
A "free" universal role-playing game.
http://www.chaosphere.com/genesys/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What kind of C++ coding style?
[not found] ` <mailman.9491.1256554593.2239.help-gnu-emacs@gnu.org>
@ 2009-10-27 2:24 ` Water Lin
0 siblings, 0 replies; 3+ messages in thread
From: Water Lin @ 2009-10-27 2:24 UTC (permalink / raw)
To: help-gnu-emacs
Jeff Clough <jeff@chaosphere.com> writes:
> From: Water Lin <WaterLin@ymail.invalid>
> Date: Mon, 26 Oct 2009 11:02:59 +0800
>
>> I am using Emacs to edit C++ code, but right now the default C++ coding
>> style of my Emacs is very strange which has just two blank space for
>> each line.
>
> If this is unacceptable, you can set the variable c-basic-offset to
> the number of columns you want.
>
> ;; Use mod-4 indent in C modes
> (setq c-basic-offset 4)
>
OK, I will try it.
>> So, I want to know which kind of C++ coding style is good for Emacs? Any
>> elisp file?
>
> I'm not sure what you are asking for here. If you are talking about
> how the code looks on your screen, tell us what isn't doing what you
> want it to and we can point you in the right direction.
>
Thanks. Looks that we need to maintain the code style ourselves.
Water Lin
> Jeff
>
>
>
> ----------
> Author of the Genesys System
> A "free" universal role-playing game.
> http://www.chaosphere.com/genesys/
>
>
--
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-27 2:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-26 3:02 What kind of C++ coding style? Water Lin
2009-10-26 10:56 ` Jeff Clough
[not found] ` <mailman.9491.1256554593.2239.help-gnu-emacs@gnu.org>
2009-10-27 2:24 ` Water Lin
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.