summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-10-07 13:01:10 +0100
committerAlan Pearce2013-10-07 13:01:10 +0100
commit78847369196226167bdfc8dd04615fbf7ac41f9b (patch)
tree6a169eb668b1f7ea76fd7930c913eb9851faae25 /emacs
parentcd3947fad742a604cb5be03cc1378d803cd032c5 (diff)
downloaddotfiles-78847369196226167bdfc8dd04615fbf7ac41f9b.tar.lz
dotfiles-78847369196226167bdfc8dd04615fbf7ac41f9b.tar.zst
dotfiles-78847369196226167bdfc8dd04615fbf7ac41f9b.zip
Emacs: switch to the Wordpress coding style in php-mode-hook
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 0b92b4e..fd54684 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -1178,6 +1178,7 @@ Works with: arglist-cont-nonempty, arglist-close."
             (unbind-key "C-." php-mode-map)
             (if (eq env/location 'home)
                 (setq php-manual-url "http://docs.home/manual/en/"))
+            (add-hook 'php-mode-hook #'php-enable-wordpress-coding-style)
             (add-hook 'php-mode-hook (lambda ()
                                        (set (make-local-variable 'eldoc-documentation-function) #'my-php-eldoc-function)))
             (use-package eldoc-php