Skip to content

Commit

Permalink
[emacs] Use bash-ts-mode instead of sh-mode for bash scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgnavar committed Oct 28, 2024
1 parent 451a277 commit 7a2610d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .emacs.d/bootstrap.org
Original file line number Diff line number Diff line change
Expand Up @@ -2095,7 +2095,7 @@ In case we don't have eglot running we can relay on dumb-jump
:if (executable-find "shellcheck")
:commands flymake-shellcheck-load
:init
(add-hook 'sh-mode-hook 'flymake-shellcheck-load))
(add-hook 'bash-ts-mode-hook 'flymake-shellcheck-load))
#+end_src

Bash formatter using ~shfmt~
Expand All @@ -2108,7 +2108,7 @@ Bash formatter using ~shfmt~
:group 'sh))

(with-eval-after-load 'sh-script
(define-key sh-mode-map (kbd "C-c C-f") 'sh-format-buffer))
(define-key bash-ts-mode-map (kbd "C-c C-f") 'sh-format-buffer))
#+end_src

** C
Expand Down

0 comments on commit 7a2610d

Please sign in to comment.