unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* TAB
@ 2003-11-17 14:32 David Rasmussen
  2003-11-17 17:31 ` TAB Kevin Rodgers
  2003-11-18  0:45 ` TAB Dan Anderson
  0 siblings, 2 replies; 11+ messages in thread
From: David Rasmussen @ 2003-11-17 14:32 UTC (permalink / raw)


When I edit java-files, most of the times emacs inserts spaces when I 
press TAB to indent something. But sometimes I've found it inserts a TAB 
character instead. Why? How can I turn it off? I never want TAB 
characters when editing Java or C++ source code files.

/David

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: TAB
@ 2003-11-17 20:42 Joe Corneli
  0 siblings, 0 replies; 11+ messages in thread
From: Joe Corneli @ 2003-11-17 20:42 UTC (permalink / raw)
  Cc: help-gnu-emacs

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.

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <20020319140511.A2178@sasken.com>]

end of thread, other threads:[~2003-11-19 14:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-17 14:32 TAB David Rasmussen
2003-11-17 17:31 ` TAB Kevin Rodgers
2003-11-17 18:16   ` TAB Dan Anderson
2003-11-18 19:23     ` TAB jan
     [not found]   ` <mailman.170.1069096910.399.help-gnu-emacs@gnu.org>
2003-11-17 19:42     ` TAB Kevin Rodgers
2003-11-17 19:49     ` TAB Sean Richards
2003-11-19  9:42   ` TAB David Rasmussen
2003-11-19 14:17     ` TAB Eli Zaretskii
2003-11-18  0:45 ` TAB Dan Anderson
  -- strict thread matches above, loose matches on Subject: below --
2003-11-17 20:42 TAB Joe Corneli
     [not found] <20020319140511.A2178@sasken.com>
     [not found] ` <20020319092050.960E9CD2B9@smtp.bcn.isoco.net>
2002-03-26 12:59   ` Tab Alexander Koptelov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).