Skip to content

Instantly share code, notes, and snippets.

@votjakovr
Last active December 20, 2015 15:49
Show Gist options
  • Save votjakovr/6156971 to your computer and use it in GitHub Desktop.
Save votjakovr/6156971 to your computer and use it in GitHub Desktop.
SHOGUN C++ style for GNU Emacs
;; 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