From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: How suppress auto-indenting? Date: Mon, 6 Mar 2006 10:13:31 +0000 Organization: muc.de e.V. -- private internet access Message-ID: References: <120nf17e30v5e6e@corp.supernews.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1141687571 12641 80.91.229.2 (6 Mar 2006 23:26:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 23:26:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 07 00:26:09 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FGP5O-0001Em-Rs for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2006 00:25:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGP5O-00070r-0G for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Mar 2006 18:25:54 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1141647721 41800 193.149.49.134 (6 Mar 2006 12:22:01 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 6 Mar 2006 12:22:01 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:137966 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33593 Archived-At: RD 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 , 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").