emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/treesit-fold 568085877e 014/417: better notes on how to in


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold 568085877e 014/417: better notes on how to install additional grammars
Date: Mon, 1 Jul 2024 10:02:05 -0400 (EDT)

branch: elpa/treesit-fold
commit 568085877e8ad768380964c83594cc8eaff6cfce
Author: Junyi Hou <junyi.yi.hou@gmail.com>
Commit: Junyi Hou <junyi.yi.hou@gmail.com>

    better notes on how to install additional grammars
---
 readme.org | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/readme.org b/readme.org
index 2e32168652..d00ffa42fa 100644
--- a/readme.org
+++ b/readme.org
@@ -77,8 +77,10 @@ Following the following steps to build additional grammar 
for ~emacs-tree-sitter
 3. compile the new grammar parser by running
    #+begin_src emacs-lisp
      ;; compile only if haven't done so
-     (unless (--filter (string= (f-base it) "r") (f-entries 
(tree-sitter-langs--bin-dir)))
-       (tree-sitter-langs-compile 'r))
+     (unless (--filter (string= (f-base it) "nix") (f-entries 
(tree-sitter-langs--bin-dir)))
+       ;; do not display compile information in a new buffer
+       (cl-letf (((symbol-function 'tree-sitter-langs--buffer) (lambda (&rest 
_) nil)))
+         (tree-sitter-langs-compile 'r)))
    #+end_src
 
 4. register the respective major mode with the newly compiled grammar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]