From 2d34efccf0bc267537107e786c62f6028c5937b6 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Tue, 24 Sep 2013 21:34:30 -0400 Subject: [PATCH] [emacs] Customize PHP indentation --- .emacs.d/init.d/php.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.emacs.d/init.d/php.el b/.emacs.d/init.d/php.el index 60e7035..8a9297a 100644 --- a/.emacs.d/init.d/php.el +++ b/.emacs.d/init.d/php.el @@ -2,6 +2,14 @@ (add-to-list 'auto-mode-alist '("\\.php$" . php-mode)) (add-to-list 'auto-mode-alist '("\\.inc$" . php-mode)) +(defun my-php-mode-hook () + "Customize PHP indentation" + + (c-set-offset 'arglist-cont-nonempty 'c-lineup-arglist) + (c-set-offset 'substatement-open 0)) + +(add-hook 'php-mode-hook 'my-php-mode-hook) + ;; Multi-Web-Mode (require 'multi-web-mode) (setq mweb-default-major-mode 'html-mode)