summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-06-05 17:52:06 +0100
committerAlan Pearce2014-06-05 17:56:13 +0100
commit5854d164cf1462795073dabc061a1d530b3620fe (patch)
treea1b223051c181d5d18981f693de382e0c3426d5f
parentd8002787cc9d6862b5c3700a60e1f5181d775208 (diff)
downloaddotfiles-5854d164cf1462795073dabc061a1d530b3620fe.tar.lz
dotfiles-5854d164cf1462795073dabc061a1d530b3620fe.tar.zst
dotfiles-5854d164cf1462795073dabc061a1d530b3620fe.zip
Emacs: switch PHP to Symfony style :(
-rw-r--r--tag-emacs/emacs.d/init.el22
1 files changed, 1 insertions, 21 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index b4b5a92..45d06ff 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -947,27 +947,7 @@
             (bind-key "C-h C-f" #'php-search-documentation php-mode-map)
             (unbind-key "C-c C-f" php-mode-map)
             (unbind-key "C-." php-mode-map)
-            (c-add-style "ap"
-                         '((c-basic-offset . 4)
-                           (c-offsets-alist . ((arglist-cont . php-lineup-arglist)
-                                               (arglist-intro . php-lineup-arglist-intro)
-                                               (arglist-close . php-lineup-arglist-close)
-                                               (topmost-intro-cont . (first c-lineup-cascaded-calls
-                                                                            php-lineup-arglist-intro))
-                                               (brace-list-intro . +)
-                                               (brace-list-entry . c-lineup-cascaded-calls)
-                                               (case-label . 4)
-                                               (statement-case-intro . 4)
-                                               (defun-close . 0)
-                                               (defun-block-intro . +)
-                                               (knr-argdecl . [0])
-                                               (arglist-cont-nonempty . c-lineup-cascaded-calls)
-                                               (statement-cont . php-lineup-hanging-semicolon)))))
-            (defun ap/php-style ()
-              (setq indent-tabs-mode t
-                    c-indent-comments-syntactically-p t)
-              (c-set-style "ap"))
-            (add-hook 'php-mode-hook #'ap/php-style)
+            (setq php-mode-coding-style "Symfony2")
             (add-hook 'php-mode-hook #'turn-on-eldoc-mode)))
 
 (req-package sgml-mode