machine_setup/ansible/roles/emacs/files/lang-bash.el
2023-08-21 00:25:48 -04:00

13 lines
375 B
EmacsLisp

(require 'util-tree-sitter)
(use-package bash-ts-mode
:ensure nil
:commands bash-ts-mode
:init
(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)