updated the .emacs example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@46782 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Stig Bakken 2001-05-07 05:26:55 +00:00
parent d4c6af461f
commit dc2e46bf89

View file

@ -1,5 +1,12 @@
<chapter id="pear.standards">
<title>PEAR Coding Standards</title>
<note>
<simpara>
The PEAR Coding Standards applies to code that is to become a part
of PEAR, either distributed with PHP or available for download via
PEAR's install tool.
</simpara>
</note>
<sect1 id="pear.standards.indenting">
<title>Indenting</title>
<para>
@ -12,7 +19,10 @@
(setq tab-width 4
c-basic-offset 4
c-hanging-comment-ender-p nil
indent-tabs-mode nil))
indent-tabs-mode
(not
(and (string-match "/\\(PEAR\\|pear\\)/" (buffer-file-name))
(string-match "\.php$" (buffer-file-name))))))
</programlisting>
</para>
<para>Here are vim rules for the same thing: