Skip to content

Instantly share code, notes, and snippets.

@zhengyang92
Forked from votjakovr/shogun-c-style.el
Created August 5, 2013 17:14
Show Gist options
  • Save zhengyang92/6157639 to your computer and use it in GitHub Desktop.
Save zhengyang92/6157639 to your computer and use it in GitHub Desktop.
;; style according the SHOGUN guide for developer and some source files
(c-add-style "shogun"
'("stroustrup"
(indent-tabs-mode . t)
(tab-width . 4)
(c-offsets-alist
(innamespace . -)
(arglist-intro . ++)
(arglist-cont-nonempty . ++)
(inher-intro . ++)
(member-init-intro . ++))))
(add-hook 'c++-mode-hook (lambda () (c-set-style "shogun")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment