[oni-core] Remove unnecessary code
When Emacs is first started ‘treesit-extra-load-path’ is empty and any ‘(treesit-language-available-p ...)’ will return nil. But calling, for example, ‘bash-ts-mode’ will work if the package is installed in Guix and will fill the variable.
This commit is contained in:
parent
6c97f13595
commit
b64b381871
1 changed files with 1 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; Keywords: local
|
||||
;; Version: 2023.0715.005059
|
||||
;; Version: 2023.0716.225152
|
||||
;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr mini-frame)
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
@ -505,7 +505,6 @@ which normally have their errors suppressed."
|
|||
;;; Tree sitter
|
||||
|
||||
(when (treesit-available-p)
|
||||
(setq treesit-extra-load-path (string-split (getenv "TREE_SITTER_GRAMMAR_PATH") ";"))
|
||||
(add-to-list 'interpreter-mode-alist '("bash" . bash-ts-mode)))
|
||||
|
||||
(provide 'oni-core)
|
||||
|
|
Loading…
Reference in a new issue