From b64b38187177b529c6706bd260157ec77c2758d1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 16 Jul 2023 23:21:16 -0700 Subject: [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. --- oni-core.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'oni-core.el') diff --git a/oni-core.el b/oni-core.el index cfd4e68..affa954 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; 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) -- cgit v1.2.3-54-g00ecf