diff options
author | Alan Pearce | 2013-10-07 13:01:10 +0100 |
---|---|---|
committer | Alan Pearce | 2013-10-07 13:01:10 +0100 |
commit | 78847369196226167bdfc8dd04615fbf7ac41f9b (patch) | |
tree | 6a169eb668b1f7ea76fd7930c913eb9851faae25 /emacs | |
parent | cd3947fad742a604cb5be03cc1378d803cd032c5 (diff) | |
download | nixfiles-78847369196226167bdfc8dd04615fbf7ac41f9b.tar.lz nixfiles-78847369196226167bdfc8dd04615fbf7ac41f9b.tar.zst nixfiles-78847369196226167bdfc8dd04615fbf7ac41f9b.zip |
Emacs: switch to the Wordpress coding style in php-mode-hook
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/init.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el index 0b92b4e8..fd54684b 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 |