From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeff Clough Newsgroups: gmane.emacs.help Subject: Re: What kind of C++ coding style? Date: Mon, 26 Oct 2009 10:56:14 +0000 Message-ID: <20091026.105614.81438348.jeff@chaosphere.com> References: <83tyxmq2l8.fsf@ymail.invalid> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1256554702 2935 80.91.229.12 (26 Oct 2009 10:58:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Oct 2009 10:58: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 Mon Oct 26 11:58: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 1N2NFy-0004Pm-85 for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Oct 2009 11:56:58 +0100 Original-Received: from localhost ([127.0.0.1]:39787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2NFx-0005RI-TX for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Oct 2009 06:56:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2NFY-0005Qm-50 for help-gnu-emacs@gnu.org; Mon, 26 Oct 2009 06:56:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2NFT-0005Pp-9o for help-gnu-emacs@gnu.org; Mon, 26 Oct 2009 06:56:31 -0400 Original-Received: from [199.232.76.173] (port=40193 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2NFT-0005Pk-5W for help-gnu-emacs@gnu.org; Mon, 26 Oct 2009 06:56:27 -0400 Original-Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:64774) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2NFS-00089I-NG for help-gnu-emacs@gnu.org; Mon, 26 Oct 2009 06:56:26 -0400 Original-Received: from localhost ([66.65.230.106]) by hrndva-omta02.mail.rr.com with ESMTP id <20091026105623090.QDVQ1670@hrndva-omta02.mail.rr.com> for ; Mon, 26 Oct 2009 10:56:23 +0000 X-Mailer: Mew version 6.2 on Emacs 22.3 / Mule 5.0 (SAKAKI) In-Reply-To: <83tyxmq2l8.fsf@ymail.invalid> X-Antivirus: avast! (VPS 091025-0, 10/25/2009), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) 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:69237 Archived-At: 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) > 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/