Re: RFC: coding standards document
| From: | Andrei Zmievski | Date: | Tue, 05 Dec 2000 20:29:01 +0000 |
| Subject: | Re: RFC: coding standards document | ||
| References: | 1 2 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-559@lists.php.net to get a copy of this message | ||
On Tue, 05 Dec 2000, Jon Parise wrote:
> > (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
Both in Emacs and vim you can embed a modeline at the beginning or the
end of your source file, for example, that will automatically set the
editing mode.
Example for vim:
/* vim:expandtab:sw=4:ts=4 */
-Andrei
* Software never has bugs. It just develops random features. *