* How suppress auto-indenting?
@ 2006-03-06 4:35 RD
2006-03-06 10:13 ` Alan Mackenzie
0 siblings, 1 reply; 2+ messages in thread
From: RD @ 2006-03-06 4:35 UTC (permalink / raw)
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?
Bob
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How suppress auto-indenting?
2006-03-06 4:35 How suppress auto-indenting? RD
@ 2006-03-06 10:13 ` Alan Mackenzie
0 siblings, 0 replies; 2+ messages in thread
From: Alan Mackenzie @ 2006-03-06 10:13 UTC (permalink / raw)
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").
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-06 10:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-06 4:35 How suppress auto-indenting? RD
2006-03-06 10:13 ` Alan Mackenzie
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).