Skip to content

Instantly share code, notes, and snippets.

@danajp
Last active December 17, 2015 16:09
Show Gist options
  • Save danajp/5636989 to your computer and use it in GitHub Desktop.
Save danajp/5636989 to your computer and use it in GitHub Desktop.
(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