From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Water Lin Newsgroups: gmane.emacs.help Subject: Re: What kind of C++ coding style? Date: Tue, 27 Oct 2009 10:24:05 +0800 Organization: A poorly-installed InterNetNews site Message-ID: <838wextvzu.fsf@ymail.invalid> References: <83tyxmq2l8.fsf@ymail.invalid> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256616322 14468 80.91.229.12 (27 Oct 2009 04:05:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Oct 2009 04:05:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 27 05:05:15 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N2dJ4-0004TN-Jn for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Oct 2009 05:05:14 +0100 Original-Received: from localhost ([127.0.0.1]:47083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2dJ3-0007gI-UX for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Oct 2009 00:05:14 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsgate.cuhk.edu.hk!www.shinco.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: 59.37.5.24 Original-X-Trace: www.shinco.com 1256610246 9449 59.37.5.24 (27 Oct 2009 02:24:06 GMT) Original-X-Complaints-To: news@www.shinco.com Original-NNTP-Posting-Date: Tue, 27 Oct 2009 02:24:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) Cancel-Lock: sha1:FxuGUruhjbWl718/iAEdskbfsIg= Original-Xref: news.stanford.edu gnu.emacs.help:174180 X-Mailman-Approved-At: Tue, 27 Oct 2009 00:04:53 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69264 Archived-At: Jeff Clough writes: > From: Water Lin > 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