commit e87372440154b2967f9c756067031e80ae8f0cdf
parent 3e524668698cb52030aa787233807110e4f99602
Author: Jake Koroman <jakekoroman@gmail.com>
Date: Fri, 29 Mar 2024 17:29:04 -0400
update c mode indentation
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
@@ -354,7 +354,7 @@
c-default-style '((java-mode . "java")
(awk-mode . "awk")
(other . "bsd")))
-(c-set-offset 'case-label '+)
+;; (c-set-offset 'case-label '+)
(font-lock-add-keywords 'c-mode
'(("internal" . font-lock-keyword-face)
diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua
@@ -26,7 +26,7 @@ o.guifont = "Liberation Mono:h10"
-- my super cool c indentation style
o.cindent = true
-o.cino = "l1,t0,(0" -- :0 will align case to the switch statement
+o.cino = "l1,t0,(0,:0" -- :0 will align case to the switch statement
o.swapfile = false
o.backup = false