unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs tab settings
@ 2004-07-02 10:56 Alpesh Mote
  2004-07-02 12:28 ` Kai Grossjohann
  0 siblings, 1 reply; 2+ messages in thread
From: Alpesh Mote @ 2004-07-02 10:56 UTC (permalink / raw)


I want to set the following indentation setting in my .emacs file could
you please help me with the same. The vi equivalent of the same is;

:se ts=8
:se softtabstop=4
:se shiftwidth=4

:autocmd FileType xml	set softtabstop=2
:autocmd FileType xml	set shiftwidth=2
:autocmd FileType tool	set softtabstop=2
:autocmd FileType tool	set shiftwidth=2
:autocmd FileType make	set shiftwidth=8
:autocmd FileType make	set shiftwidth=8

cheers
-- 
Alpesh
Software Engineer
In-Reality Software Pvt Ltd

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: emacs tab settings
  2004-07-02 10:56 emacs tab settings Alpesh Mote
@ 2004-07-02 12:28 ` Kai Grossjohann
  0 siblings, 0 replies; 2+ messages in thread
From: Kai Grossjohann @ 2004-07-02 12:28 UTC (permalink / raw)


Alpesh Mote <alpesh@in-reality.com> writes:

> I want to set the following indentation setting in my .emacs file could
> you please help me with the same. The vi equivalent of the same is;
>
> :se ts=8
> :se softtabstop=4
> :se shiftwidth=4

As you might imagine, not all of us are vim gurus.  What do the above
settings do?

In Emacs, there are two issues: first, how are tab characters
displayed?  And secondly, how many columns are indented?  In Emacs,
programming languages normally provide syntax-driven indentation.
Each programming language mode has its own way to customize the
indentation.

Kai

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-02 12:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-02 10:56 emacs tab settings Alpesh Mote
2004-07-02 12:28 ` Kai Grossjohann

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).