From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gareth Rees Newsgroups: gmane.emacs.help Subject: Re: emacs and tab stops Date: Wed, 10 Sep 2008 22:49:28 +0100 Organization: Zen Internet Message-ID: <48c840e8$0$2932$fa0fcedb@news.zen.co.uk> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221103855 3858 80.91.229.12 (11 Sep 2008 03:30:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 03:30:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 05:31:51 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KdcuI-0006x2-O9 for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 05:31:46 +0200 Original-Received: from localhost ([127.0.0.1]:48965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdctI-0007JG-Bc for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2008 23:30:44 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!newsfeed.straub-nv.de!dedekind.zen.co.uk!zen.net.uk!demorgan.zen.co.uk!reader02.news.zen.co.uk.POSTED!not-for-mail User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 20 Original-NNTP-Posting-Host: 5b5f0054.news.zen.co.uk Original-X-Trace: DXC=Pk2Z_5nA3T87SeeF=2_\U2YjZGX^207P; `PdDHa= Original-X-Complaints-To: abuse@zen.co.uk Original-Xref: news.stanford.edu gnu.emacs.help:162060 X-Mailman-Approved-At: Wed, 10 Sep 2008 23:28:48 -0400 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:57408 Archived-At: tano wrote: > I used to run emacs always in fundamental mode, because I do not > like automatic indentation, so I put a line in my .emacs file > like (setq auto-mode-alist nil) to leave my tab stop every 8 chars. > However with new versions of emacs seems that things are changed. > Even if I run fundamental mode, tab stops does not follow the standard > indentation every 8 chars, but goes in the first char after a space > on the previous line, for example. This is because the TAB key is now bound to the function `indent-for-tab-command'. (When did this change? I don't see anything in NEWS about it.) The command you are looking for is `tab-to-tab-stop', which you can run by typing M-i, or you can bind it to the TAB key with something like (global-set-key (kbd "TAB") #'tab-to-tab-stop) -- Gareth Rees