From: Jeff Clough <jeff@chaosphere.com>
To: help-gnu-emacs@gnu.org
Subject: Re: What kind of C++ coding style?
Date: Mon, 26 Oct 2009 10:56:14 +0000 [thread overview]
Message-ID: <20091026.105614.81438348.jeff@chaosphere.com> (raw)
In-Reply-To: <83tyxmq2l8.fsf@ymail.invalid>
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/
next prev parent reply other threads:[~2009-10-26 10:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-26 3:02 What kind of C++ coding style? Water Lin
2009-10-26 10:56 ` Jeff Clough [this message]
[not found] ` <mailman.9491.1256554593.2239.help-gnu-emacs@gnu.org>
2009-10-27 2:24 ` Water Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091026.105614.81438348.jeff@chaosphere.com \
--to=jeff@chaosphere.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.