From 5d7182df279cdc1a5f7a9e8626cb8d0b23481fb4 Mon Sep 17 00:00:00 2001 From: Joshua Barrett Date: Fri, 27 Feb 2026 18:01:15 -0500 Subject: [PATCH] give up on trying to pull down tree-sitter grammars inside emacs --- etc/elpaca-lock.el | 26 +++++++++++++------------- init.el | 35 +---------------------------------- 2 files changed, 14 insertions(+), 47 deletions(-) diff --git a/etc/elpaca-lock.el b/etc/elpaca-lock.el index 412473a..4f3d9b8 100644 --- a/etc/elpaca-lock.el +++ b/etc/elpaca-lock.el @@ -115,6 +115,19 @@ :source "elpaca-menu-lock-file" :protocol https :inherit t :depth treeless :ref "c0bf3b81c7a97e2a0d06d05495e86848254fcc1f")) + (dockerfile-mode :source "elpaca-menu-lock-file" :recipe + (:package "dockerfile-mode" :fetcher github :repo + "spotify/dockerfile-mode" :files + ("*.el" "*.el.in" "dir" "*.info" "*.texi" + "*.texinfo" "doc/dir" "doc/*.info" "doc/*.texi" + "doc/*.texinfo" "lisp/*.el" "docs/dir" + "docs/*.info" "docs/*.texi" "docs/*.texinfo" + (:exclude ".dir-locals.el" "test.el" "tests.el" + "*-test.el" "*-tests.el" "LICENSE" + "README*" "*-pkg.el")) + :source "elpaca-menu-lock-file" :protocol https + :inherit t :depth treeless :ref + "97733ce074b1252c1270fd5e8a53d178b66668ed")) (doom-modeline :source "elpaca-menu-lock-file" :recipe (:package "doom-modeline" :repo "seagle0128/doom-modeline" :fetcher github :files @@ -481,19 +494,6 @@ :source "elpaca-menu-lock-file" :protocol https :inherit t :depth treeless :ref "365f88238f46f9b1425685562105881800f10386")) - (persp-mode :source "elpaca-menu-lock-file" :recipe - (:package "persp-mode" :repo "Bad-ptr/persp-mode.el" :fetcher - github :files - ("*.el" "*.el.in" "dir" "*.info" "*.texi" "*.texinfo" - "doc/dir" "doc/*.info" "doc/*.texi" "doc/*.texinfo" - "lisp/*.el" "docs/dir" "docs/*.info" "docs/*.texi" - "docs/*.texinfo" - (:exclude ".dir-locals.el" "test.el" "tests.el" - "*-test.el" "*-tests.el" "LICENSE" "README*" - "*-pkg.el")) - :source "elpaca-menu-lock-file" :protocol https :inherit - t :depth treeless :ref - "fab4bf76927445d2e431f06e74572acba81f47d5")) (plz :source "elpaca-menu-lock-file" :recipe (:package "plz" :repo ("https://github.com/alphapapa/plz.el.git" . "plz") :files ("*" (:exclude ".git" "LICENSE")) :source diff --git a/init.el b/init.el index 4baf74c..ba73d58 100644 --- a/init.el +++ b/init.el @@ -364,40 +364,7 @@ :ensure nil :demand t :mode (("\\.ts\\'" . typescript-ts-mode) - ("\\.toml\\'" . toml-ts-mode)) - :config - (setq treesit-extra-load-path (list (expand-file-name "var/tree-sitter" - user-emacs-directory)) - treesit-language-source-alist - '((bash "https://github.com/tree-sitter/tree-sitter-bash") - (cmake "https://github.com/uyha/tree-sitter-cmake") - (css "https://github.com/tree-sitter/tree-sitter-css") - (elisp "https://github.com/Wilfred/tree-sitter-elisp") - (go "https://github.com/tree-sitter/tree-sitter-go") - (html "https://github.com/tree-sitter/tree-sitter-html") - (javascript "https://github.com/tree-sitter/tree-sitter-javascript" - "master" "src") - (json "https://github.com/tree-sitter/tree-sitter-json") - (lua "https://github.com/tree-sitter-grammars/tree-sitter-lua") - (make "https://github.com/alemuller/tree-sitter-make") - (markdown "https://github.com/ikatyang/tree-sitter-markdown") - (python "https://github.com/tree-sitter/tree-sitter-python") - (toml "https://github.com/tree-sitter/tree-sitter-toml") - (tsx "https://github.com/tree-sitter/tree-sitter-typescript" - "master" "tsx/src") - (typescript "https://github.com/tree-sitter/tree-sitter-typescript" - "master" "typescript/src") - (yaml "https://github.com/ikatyang/tree-sitter-yaml") - (rust "https://github.com/tree-sitter/tree-sitter-rust") - (c "https://github.com/tree-sitter/tree-sitter-c") - (cpp "https://github.com/tree-sitter/tree-sitter-cpp"))) - (advice-add 'treesit--install-language-grammar-1 - :around (lambda (f &rest args) - (apply f (cons (car treesit-extra-load-path) - (cdr args))))) - (dolist (grammar treesit-language-source-alist) - (unless (treesit-language-available-p (car grammar)) - (treesit-install-language-grammar (car grammar))))) + ("\\.toml\\'" . toml-ts-mode))) ;;; Diagnostic package configuration ;; Anything that supplies or displays generic code or text intelligence (red -- 2.51.2