source: trunk/base/HACKING @ 29930

Last change on this file since 29930 was 29930, checked in by jmpp@…, 12 years ago

Unify modeline in all source files that have been whitespace-cleaned per last agreed on standard.

File size: 1.1 KB
1Whitespace rules as discussed on the list:
3* All source code files MUST use soft tabs at a tabstop of 4. No hard tabs are allowed.
4* All source code files SHOULD have the following as the first line of the file:
5    # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
6  This is a modeline that works for both emacs and vim.
7* Portfiles SHOULD use soft tabs at a tabstop of 4, but implementation of this is left up to the discretion of the maintainer.
8* Portfiles SHOULD use the given modeline
9* Makefiles MUST use tabs as it is required by the syntax. Makefiles SHOULD use a tab stop of 8.
10* Makefiles MAY use a modeline. The following works for emacs and vim:
11    # -*- coding: utf-8; mode: Makefile; tab-width: 8; indent-tabs-mode: t -*- vim:fenc=utf-8:filetype=Makefile:noet:sw=8:ts=8
12* All other files (documentation, etc) SHOULD use soft tabs at a tabstop of 4 if the document format allows.
13* All other files (documentation, etc) SHOULD NOT use a modeline as it is probably meant for human consumption.
Note: See TracBrowser for help on using the repository browser.