emacs-devel
[Top][All Lists]
Advanced

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

Re: Difficulty building tree-sitter grammars [was: Help sought from C++


From: Dmitry Gutov
Subject: Re: Difficulty building tree-sitter grammars [was: Help sought from C++ expert: ....]
Date: Thu, 19 Jan 2023 19:53:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

Hi Alan,

On 19/01/2023 19:14, Alan Mackenzie wrote:
I suggest that these instructions in NEWS should be enhanced with (i)
Tips on downloading stuff from github; (ii) A sample command line for
compiling the C/C++ source files; (iii) A sample command line for
linking these to the needed .so file.  Possibly two or three versions of
these would be needed for the different environments Emacs runs in.

Not to detract from your feedback on the documentation, but 'M-x treesit-install-language-grammar' even without existing presets these, turned out to be very helpful in my experience.

E.g., for c++ I choose 'cpp', answer yes to building manually, paste the github repository url when asked, press RET several times, and voila.



reply via email to

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