machine_setup/ansible/roles/emacs/files/elisp/lang-bash.el

13 lines
375 B
EmacsLisp
Raw Normal View History

2022-10-20 04:03:56 +00:00
(require 'util-tree-sitter)
2023-05-27 17:48:18 +00:00
(use-package bash-ts-mode
2022-10-20 04:03:56 +00:00
:ensure nil
2023-05-27 17:48:18 +00:00
: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))
2022-10-20 04:03:56 +00:00
)
(provide 'lang-bash)