[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What kind of C++ coding style?
From: |
Water Lin |
Subject: |
Re: What kind of C++ coding style? |
Date: |
Tue, 27 Oct 2009 10:24:05 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) |
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