Update bash for emacs29.
This commit is contained in:
parent
cd02a14792
commit
063b0a0d92
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
(require 'lang-org)
|
(require 'lang-org)
|
||||||
|
|
||||||
;; (require 'lang-bash)
|
(require 'lang-bash)
|
||||||
|
|
||||||
;; (require 'lang-markdown)
|
;; (require 'lang-markdown)
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user