> From: Roman Rudakov <rrudakov@fastmail.com> > Cc: "T.V Raman" <raman@google.com>, emacs-devel@gnu.org > Date: Fri, 25 Nov 2022 11:41:47 +0100 > > > We are just starting to work on tree-sitterâs user-facing > > documentation, including the (emacs) manual and NEWS file. Iâll > > definitely improve the error message. In the meantime, find files > > that > > looks like libtree-sitter-xxx.so and put them under > > ~/.emacs.d/tree-sitter (or a standard library location like > > /usr/local/lib), and Emacs should be able to find them. > > > > Yuan > > Hi Yuan! > > I have a question. Are these paths hardcoded? This is Emacs; how can you assume such hard-coded paths are even possible? Of course, they aren't hard-coded! Emacs looks in the standard directories for shared libraries, then in user-emacs-directory, then in the directories mentioned in treesit-extra-load-path. > I can fix it by adding /opt/homebrew/lib to treesit-extra-load-path, > but I'm wondering how to install grammar properly to avoid setting > this variable. Adding this to treesit-extra-load-path is fine. Alternatively, install the shared library where you have the other shared libraries on your system (a.k.a. "standard places").
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4