From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: indenting Date: Tue, 26 Oct 2004 17:14:16 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098811062 11493 80.91.229.6 (26 Oct 2004 17:17:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 17:17:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 26 19:17:37 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CMUwy-0000mn-00 for ; Tue, 26 Oct 2004 19:17:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMV4g-00051U-HZ for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Oct 2004 13:25:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:OqpRmFgGcLdolwKGHVIJusf6c5E= Original-Lines: 31 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1098810856 132.204.24.84 (Tue, 26 Oct 2004 13:14:16 EDT) Original-NNTP-Posting-Date: Tue, 26 Oct 2004 13:14:16 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:126076 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21455 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21455 > I do not want tab characters. Your (setq-default indent-tabs-mode nil) does that. > I want to be able to hit the tab key after I type int and i1. but the int > indents and follows the tab. What I end up with is > int i1 = 0; > THis is no more readable than having everything shifted to the left. > How can I stop this behavior? Your (setq c-tab-always-indent nil) should have done that. Can you describe very pedantically precisely every little itsy bitsy detail of what you do, what you expect, and what happens instead, as if you were talking to a complete and total idiot ? > (add-hook 'c++-mode-hook '(lambda () (setq indent-tabs-mode nil))) ^^^ This quote is at best unnecessary. Better remove it. > (setq-default indent-tabs-mode nil) Actually with this default setting your `add-hook' above should not be necessary at all. > ;(setq c-tab-always-indent t) A single ; is indented to comment-column (trying hitting TAB, just for fun). Use ;; instead. Stefan