mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +00:00
1a8edfe192
This commit adds basic support for tree-sitter in the emacs build, such that (if the user opts into tree-sitter support), tree-sitter will be enabled and binary library files for tree-sitter can be included in the `lib` directory of packages passed to `emacsWithPackages`. The libraries will be aggregated and included in treesit-extra-load-path. The previous pattern for this in the community was to add tree-sitter libaries by patching emacs's `RUNPATH` with `patchelf` in a post-fixup phase. However, this has the substantial drawback that two different emacs installations with different lists of available tree-sitter libraries must be entirely separate builds. By supplying the tree-sitter libraries in the wrapping layer of `emacsWithpackages`, it becomes possible to share a single, more-cacheable "core emacs". This support defaults to "on" only in emacs 29 and up, since previous versions do not support tree-sitter out of the box. |
||
---|---|---|
.. | ||
accessibility | ||
audio | ||
backup | ||
blockchains | ||
display-managers | ||
editors | ||
emulators | ||
file-managers | ||
finance | ||
gis | ||
graphics | ||
kde | ||
logging | ||
maui | ||
misc | ||
networking | ||
office | ||
plasma-mobile | ||
printing/pappl | ||
qubes/qubes-core-vchan-xen | ||
radio | ||
science | ||
search | ||
system | ||
terminal-emulators | ||
version-management | ||
video | ||
virtualization | ||
window-managers |