summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2021-03-04 09:09:04 -0600
committerCase Duckworth2021-03-04 09:09:04 -0600
commitf5363a1768ac113de7a66dfa5d4f57d6461af907 (patch)
treed2a286f0da4e8201b283aae8023c5313cb40b98d /init.el
parentLoad flyspell-correct after flyspell (diff)
downloademacs-f5363a1768ac113de7a66dfa5d4f57d6461af907.tar.gz
emacs-f5363a1768ac113de7a66dfa5d4f57d6461af907.zip
Fix sh case indenting to shfmt style
Diffstat (limited to 'init.el')
-rw-r--r--init.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.el b/init.el index e504fd5..70b9325 100644 --- a/init.el +++ b/init.el
@@ -466,9 +466,14 @@
466(use-package reformatter 466(use-package reformatter
467 :demand) 467 :demand)
468 468
469(setq-default smie-indent-basic 8)
470
469;; Shell scripts 471;; Shell scripts
470(setq-default sh-basic-offset 8 472(setq-default sh-basic-offset 8
471 smie-indent-basic 8) 473 ;; try to indent like shfmt
474 sh-indent-after-case 0
475 sh-indent-for-case-alt '+
476 sh-indent-for-case-label 0)
472 477
473(use-package flymake-shellcheck 478(use-package flymake-shellcheck
474 :when (executable-find "shellcheck") 479 :when (executable-find "shellcheck")