From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: making TAB in text major mode just work Date: Fri, 23 Nov 2007 04:30:06 +0200 Organization: SunSITE.dk - Supporting Open source Message-ID: <87wss9vglt.fsf@kobe.laptop> References: <16776938-be7b-4c7b-a8ad-b61ba6ac20a2@i29g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195785681 18899 80.91.229.12 (23 Nov 2007 02:41:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Nov 2007 02:41:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 23 03:41:28 2007 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 1IvOTo-00035D-28 for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Nov 2007 03:41:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IvOTZ-0005i3-Rp for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Nov 2007 21:41:05 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (berkeley-unix) Cancel-Lock: sha1:QMW7lcUgn0mRI5ZvSC3VFxZ7gC4= Original-Lines: 37 Original-NNTP-Posting-Host: 81.186.70.88 Original-X-Trace: news.sunsite.dk DXC=L^Mj7X7f^UIZ@YZ9jT>5; ^g3g\075NJKKfG3<= Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:153992 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:49422 Archived-At: On Thu, 22 Nov 2007 12:35:12 -0800 (PST), jwithers wrote: > Folks, > > In text mode, or in fundamental mode for that matter, if emacs decides > you are indenting to some point before a tab stop, it helpfully > decides that you want that indent on following lines. This is a real > pita when you are doing bullet points, as follows: > > |<-----the first tab stop > * This is a bullet point > * This is another bullet point > > This is a paragraph that is now indented incorrectly because emacs > has decided that my bullet points mean this line should be indented > two spaces. > > I am looking for some way to stop this behavior, so that emacs doesn't > decide I need smart indentation, [...] You can bind TAB to `self-insert-command'. This should do it. One way of setting this for `text-mode' and its derivatives is: (add-hook 'text-mode-hook (lambda () (local-set-key (kbd "TAB") 'self-insert-command))) > And doing a control-q tab isn't really good in my mind. I don't want > to have to keep remembering to do something different than just type > when I am in the flow of working. TAB is equivalent to `C-i' in many terminals. You can quickly insert a literal ASCII TAB character by hitting `M-i', or you can use the hook change shown above... it's all a matter of preference :) - Giorgos