Re: RFC: coding standards document
| From: | Jon Parise | Date: | Tue, 05 Dec 2000 20:25:20 +0000 |
| Subject: | Re: RFC: coding standards document | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-558@lists.php.net to get a copy of this message | ||
On Tue, Dec 05, 2000 at 11:35:18AM -0500, Chuck Hagenbuch wrote:
> -------------
> [1] Indenting
> =============
>
> Use an indent of 4 spaces, with no tabs. If you use Emacs to edit PEAR
> code, you should set indent-tabs-mode to nil. Here is an example mode
> hook that will set up Emacs according to these guidelines (you will
> need to ensure that it is called when you are editing php files):
>
> (defun php-mode-hook ()
> (setq tab-width 4
> c-basic-offset 4
> c-hanging-comment-ender-p nil
> indent-tabs-mode nil))
Here are the vim rules that I use:
set expandtab
set shiftwidth=4
set tabstop=4
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member