Update bash for emacs29.

This commit is contained in:
Tom Alexander 2023-05-27 13:48:18 -04:00
parent cd02a14792
commit 063b0a0d92
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 7 additions and 7 deletions

View File

@ -18,7 +18,7 @@
(require 'lang-org) (require 'lang-org)
;; (require 'lang-bash) (require 'lang-bash)
;; (require 'lang-markdown) ;; (require 'lang-markdown)

View File

@ -1,12 +1,12 @@
(require 'common-lsp)
(require 'util-tree-sitter) (require 'util-tree-sitter)
(use-package sh-mode (use-package bash-ts-mode
:ensure nil :ensure nil
:commands sh-mode :commands bash-ts-mode
:hook ((sh-mode . flycheck-mode) :init
(sh-mode . tree-sitter-hl-mode) (add-to-list 'major-mode-remap-alist '(sh-mode . bash-ts-mode))
) (add-to-list 'treesit-language-source-alist '(bash "https://github.com/tree-sitter/tree-sitter-bash"))
(unless (treesit-ready-p 'bash) (treesit-install-language-grammar 'bash))
) )
(provide 'lang-bash) (provide 'lang-bash)