Last active
December 17, 2015 16:09
-
-
Save danajp/5636989 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(c-add-style "php-pear-k&r-mods" '("k&r" | |
(c-basic-offset . 4) | |
(c-offsets-alist . ((case-label . +) | |
(arglist-close . 0) | |
(inline-open . 0))) | |
(c-hanging-braces-alist . ((defun-open after) | |
(inline-open after) | |
(substatement-open after))))) | |
(add-hook 'php-mode-hook '(lambda () | |
(message "setting style to php-pear") | |
(c-set-style "php-pear-k&r-mods"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment