summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/CODING_STANDARDS5
1 files changed, 4 insertions, 1 deletions
diff --git a/pear/CODING_STANDARDS b/pear/CODING_STANDARDS
index 072a9a2b73..cd48d1546b 100644
--- a/pear/CODING_STANDARDS
+++ b/pear/CODING_STANDARDS
@@ -17,7 +17,10 @@ need to ensure that it is called when you are editing php files):
(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))))))
Here are vim rules for the same thing: