[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
- [nongnu] branch elpa/treesit-fold created (now f66e2b8be9), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold ce21a60d23 001/417: init commit, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 2f826374a8 007/417: add installation guide, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold e28c905a45 006/417: improve error message when no foldable node under point, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold d3665fd07a 013/417: update readme, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 26bcac9cfb 008/417: add contribution guide, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 510f3ff119 018/417: update readme, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 3a66cdeb1a 002/417: update readme, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold e7dd19b2d1 005/417: fix compile bug: add to evil-fold-list only if it exist, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 568085877e 014/417: better notes on how to install additional grammars,
ELPA Syncer <=
- [nongnu] elpa/treesit-fold 2ad70aae0d 023/417: Remove unused format function, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 88b0e6eab0 039/417: Update doc, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 557df0a4fe 045/417: Add replacement customization, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 6603e0ddbb 057/417: Split parser, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 7127f4bbcc 061/417: Add comment, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold c6f58d41d5 068/417: Fix, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 445b209eb0 062/417: Fix compatible, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold f57a136cb8 075/417: Fix externals, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold b493772d32 080/417: Fix autoload, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 8d2599d54d 071/417: Fix warnings, ELPA Syncer, 2024/07/01