diff options
author | Case Duckworth | 2021-03-04 09:09:04 -0600 |
---|---|---|
committer | Case Duckworth | 2021-03-04 09:09:04 -0600 |
commit | f5363a1768ac113de7a66dfa5d4f57d6461af907 (patch) | |
tree | d2a286f0da4e8201b283aae8023c5313cb40b98d | |
parent | Load flyspell-correct after flyspell (diff) | |
download | emacs-f5363a1768ac113de7a66dfa5d4f57d6461af907.tar.gz emacs-f5363a1768ac113de7a66dfa5d4f57d6461af907.zip |
Fix sh case indenting to shfmt style
-rw-r--r-- | init.el | 7 |
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") |