Skip to content

Instantly share code, notes, and snippets.

@duyanning
duyanning / gist:4103243
Created November 18, 2012 03:10 — forked from nschum/gist:2626303
better "enum class" indent in Emacs
;; This hack fixes indentation for C++11's "enum class" in Emacs.
;; http://stackoverflow.com/questions/6497374/emacs-cc-mode-indentation-problem-with-c0x-enum-class/6550361#6550361
;; You should change default style from gnu to stroustrup in you .emacs
;; (setq c-default-style
;; '((c++-mode . "stroustrup")
;; (java-mode . "java")
;; (awk-mode . "awk")
;; (other . "gnu")))