unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mark Mynsted <mmynsted_news@gbronline.com>
Subject: Re: Indenting in emacs
Date: 30 Apr 2003 07:28:50 -0500	[thread overview]
Message-ID: <m2u1cggoe5.fsf@mmynsted.corp.vha.com> (raw)
In-Reply-To: pan.2003.04.30.08.22.26.937788@in.the.signature

>>>>> "seguso" == seguso  <address@in.the.signature> writes:

seguso> Hello,
seguso> While programming in C++, I am trying to set the 
seguso> indentation style as follows:

seguso> func()
seguso> {
seguso>    for (;;)
seguso>    {
seguso>       x = 5;
seguso>    } 
seguso> }


seguso> I tried c-set-style, but there is no style which works
seguso> like that.

That looks like Ellemtel style to me.  Perhaps you could use Ellemtel
then customize it where it deviates from your requirements.

;; use Ellemtel style for all C like languages
(c-set-style "ellemtel")

-- 
-MM
I rarely read email from this address          /"\
because of spam.                               \ /     ASCII Ribbon Campaign
I MAY see it if you put #NOTSPAM#               X      Against HTML Mail
in the subject line.                           / \

      parent reply	other threads:[~2003-04-30 12:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-30  8:26 Indenting in emacs seguso
2003-04-30  9:47 ` seguso
2003-04-30 12:28 ` Mark Mynsted [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2u1cggoe5.fsf@mmynsted.corp.vha.com \
    --to=mmynsted_news@gbronline.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).