From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.help Subject: Re: TAB Date: Mon, 17 Nov 2003 14:42:39 -0600 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1069102351 5838 80.91.224.253 (17 Nov 2003 20:52:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2003 20:52:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 21:52:28 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ALqMG-0007xm-00 for ; Mon, 17 Nov 2003 21:52:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ALrFn-0001ZK-7J for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2003 16:49:51 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ALrAt-0007bb-DX for help-gnu-emacs@gnu.org; Mon, 17 Nov 2003 16:44:47 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ALrAE-0007Iv-VH for help-gnu-emacs@gnu.org; Mon, 17 Nov 2003 16:44:38 -0500 Original-Received: from [146.6.139.124] (helo=dell3.ma.utexas.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ALrAE-0007Hz-4y for help-gnu-emacs@gnu.org; Mon, 17 Nov 2003 16:44:06 -0500 Original-Received: from lab45.ma.utexas.edu (mail@lab45.ma.utexas.edu [128.83.133.159]) by dell3.ma.utexas.edu (8.11.0.Beta3/8.10.2) with ESMTP id hAHKgdB19300; Mon, 17 Nov 2003 14:42:39 -0600 Original-Received: from jcorneli by lab45.ma.utexas.edu with local (Exim 3.36 #1 (Debian)) id 1ALqCl-00059P-00; Mon, 17 Nov 2003 14:42:39 -0600 Original-To: Dan Anderson X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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:14330 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14330 I think the following explains how to do what you want. BTW I don't write java code, but I was thinking that a similar feature for lisp might be nice. It seems to be harder to find that information (at least on this computer...). C-x C-f sample.java RET C-h k C-i *snip snip* The amount and kind of whitespace inserted is controlled by the variable `c-insert-tab-function', which is called to do the actual insertion of whitespace. Normally the function in this variable just inserts a tab character, or the equivalent number of spaces, depending on the variable `indent-tabs-mode'. ================ C-h v indent-tabs-mode RET *snip snip* indent-tabs-mode's value is t Documentation: *Indentation can insert tabs if this is non-nil. Setting this variable automatically makes it local to the current buffer.