emacs-twist / twist.nix

Build an entire Emacs configuration as a Nix package in a pure, reproducible way
GNU General Public License v3.0
66 stars 6 forks source link

Documentation on native-comp #163

Open 9glenda opened 1 week ago

9glenda commented 1 week ago

I am a bit confused on native-comp support. Could you provide documentation on the state of nativ-comp support in twist.nix?

It would be really nice to be able to compile all packages using native-comp.

akirak commented 1 week ago

Hello, native compilation of Emacs Lisp packages is supported and enabled by default. Twist provides a wrapper for loading the Emacs environment, which starts Emacs with the native libraries included here.

If you don't want to use the wrapper, you have to somehow configure your Emacs environment to load the native libraries. @terlar has a working configuration with native compilation enabled in this file.