1
0
Fork 0

[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:
Tom Willemse 2023-07-16 23:21:16 -07:00
parent 6c97f13595
commit b64b381871

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; 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) ;; 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 ;; This program is free software; you can redistribute it and/or modify
@ -505,7 +505,6 @@ which normally have their errors suppressed."
;;; Tree sitter ;;; Tree sitter
(when (treesit-available-p) (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))) (add-to-list 'interpreter-mode-alist '("bash" . bash-ts-mode)))
(provide 'oni-core) (provide 'oni-core)