Commit Diff


commit - f9fb86fa502a3387b1dbf95051ce16fadb7adba1
commit + 4bbfbbe5448e15a4500b9f497b92d81f9c1695fc
blob - 4ca8384ffe373a54e1d9dfd0213c4d243385db96
blob + fa333f13857e7ed0b92379cc9f8c406ba429d9ff
--- emacs/init.el
+++ emacs/init.el
@@ -392,7 +392,8 @@ Taken from endless parentheses."
   (defun op/c-indent ()
     (interactive)
     (c-set-offset 'arglist-intro '+)
-    (c-set-offset 'arglist-cont-nonempty '*))
+    (c-set-offset 'arglist-cont-nonempty '*)
+    (c-set-offset 'label 1))
   (add-hook 'c-mode-hook #'op/c-indent)
   ;; TODO: improve it!
   (defun op/c-add-include (path &optional localp)