From: Aron Griffis <agriffis@gentoo.org>
To: gentoo-dev@cvs.gentoo.org
Subject: Re: [gentoo-dev] The official answer on tabs and spaces
Date: Fri Oct 19 12:24:02 2001 [thread overview]
Message-ID: <20011019124655.B3155@yde.flatmonk.org> (raw)
In-Reply-To: <20011019112630.B7807@cvs.gentoo.org>
Daniel Robbins wrote: [Fri Oct 19 2001, 12:26:30PM EST]
> The correct, official way is to use a single tab per indent. Tabs
> should not be converted to spaces, and multiple spaces should not be
> used in place of tabs. This way, people can use any tabstop they like
> and everything still is correctly indented.
Thanks Daniel. Sorry I wasn't aware that you had an official policy.
In support of this, here's something Vim users can put in their .vimrc
to make sure it's done correctly for ebuilds. Of course, you can use
whatever value you like in place of 4.
augroup gentoo
au!
au BufRead *.ebuild set tabstop=4 shiftwidth=4 noexpandtab
augroup END
Alternatively, you could do the following, which would affect not only
ebuilds but anything you would edit that pertains to Gentoo.
if (getcwd() =~ 'gentoo-x86\|gentoo-src\|portage')
set tabstop=4 shiftwidth=4 noexpandtab
endif
Aron
next prev parent reply other threads:[~2001-10-19 18:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-19 10:56 [gentoo-dev] Tabs and spaces Aron Griffis
2001-10-19 11:08 ` Chris Houser
2001-10-19 11:35 ` Aron Griffis
2001-10-19 11:58 ` Chris Houser
2001-10-19 11:27 ` [gentoo-dev] The official answer on tabs " Daniel Robbins
2001-10-19 12:24 ` Aron Griffis [this message]
2001-10-19 18:26 ` Karl Trygve Kalleberg
2001-10-22 4:52 ` Djamil ESSAISSI
2001-10-22 5:17 ` Mikael Hallendal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011019124655.B3155@yde.flatmonk.org \
--to=agriffis@gentoo.org \
--cc=gentoo-dev@cvs.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox