unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: G Anna <drguruolai@eth.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: automatic indentation in C,C++ modes
Date: 23 Apr 2002 07:31:11 +0530	[thread overview]
Message-ID: <m3znzv41i0.fsf@wobble.eth.net> (raw)
In-Reply-To: <3CC05446.50EEB4AD@hiwaay.net>


> Date: Fri, 19 Apr 2002 12:30:46 -0500
> From: Tony Harbin <tharbin@hiwaay.net>
> Subj: Re: automatic indentation in C,C++ modes

[snip]

> self-insert-command functions.  I have a particular indentation
> style that is common where I work and I *hate* some software trying
> to enforce it's own style.

My understanding is that GNU Emacs doesn't do anything unless its
asked to do so.  Below, I am quoting an extract from the Emacs info
documentation.  Is this of any help?

<info>
Electric C Characters

   In C mode and related modes, certain printing characters are
"electric"--in addition to inserting themselves, they also reindent
the current line and may insert newlines.  This feature is controlled
by the variable `c-auto-newline'.  The "electric" characters are `{',
`}', `:', `#', `;', `,', `<', `>', `/', `*', `(', and `)'.

   Electric characters insert newlines only when the "auto-newline"
feature is enabled (indicated by `/a' in the mode line after the mode
name).  This feature is controlled by the variable `c-auto-newline'.
You can turn this feature on or off with the command `C-c C-a':

`C-c C-a'
     Toggle the auto-newline feature (`c-toggle-auto-state').  With a
     prefix argument, this command turns the auto-newline feature on if
     the argument is positive, and off if it is negative.
</info>

HTH

anna

-- 

Get your free e-mail account at http://www.linuxmail.org

  parent reply	other threads:[~2002-04-23  2:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-12 22:56 automatic indentation in C,C++ modes Tony Harbin
2002-04-13  1:06 ` Greg Hill
2002-04-15 16:51   ` Tony Harbin
2002-04-15 18:47     ` Greg Hill
2002-04-19 17:30       ` Tony Harbin
2002-04-22 17:08         ` Emacs as web server Greg Hill
2002-04-23  2:01         ` G Anna [this message]
2002-04-24 15:53           ` automatic indentation in C,C++ modes Tony Harbin

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=m3znzv41i0.fsf@wobble.eth.net \
    --to=drguruolai@eth.net \
    --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.
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).