unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Alan Mackenzie <acm@muc.de>
Subject: Re: How suppress auto-indenting?
Date: Mon, 6 Mar 2006 10:13:31 +0000	[thread overview]
Message-ID: <c02hud.ta.ln@acm.acm> (raw)
In-Reply-To: 120nf17e30v5e6e@corp.supernews.com

RD <rjjd@localnet.com> wrote on Sun, 05 Mar 2006 23:35:47 -0500:
> Is there a way to get emacs to omit auto indenting?

> In particular, in c++ mode, I sometimes want to enter a few lines
> without having emacs fiddle the indentation.  It would be nice to have
> a switch of some sort, or can I find out what variables to toggle?

Download CC Mode 5.31.3 from <http://cc-mode.sf.net/release.php>, and
install it.  This is easy, and should take you less than an hour, even
assuming you've never installed Lisp code into Emacs before.

CC Mode 5.31.3 has the toggle C-c C-l which does exactly what you're
asking for.

If you don't want to install a new version for some reason, a workaround
is

   M-: (setq c-syntactic-indentation nil) 

(that's "meta colon" followed by entering the Lisp), but it's not very
satisfactory.  Replace "nil" by "t" in the above to reverse the toggle.

> Bob

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

      reply	other threads:[~2006-03-06 10:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-06  4:35 How suppress auto-indenting? RD
2006-03-06 10:13 ` Alan Mackenzie [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=c02hud.ta.ln@acm.acm \
    --to=acm@muc.de \
    /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).