Skip to content

Docker file to build emacs 28 with native compilation (should be faster)

License

Notifications You must be signed in to change notification settings

harmonicss/docker-emacs-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

docker-emacs-native

Docker file to build emacs 28 with native compilation (should be faster)

Taken from Mastering Emacs Native Lisp Compilation, with thanks!

Modified to build from ./emacs

first, clone the emacs source

git clone https://git.savannah.gnu.org/git/emacs.git apt-get update

source will be in ./emacs now.

second, build the docker container

docker build -t "emacs-native-comp" .

third, run the docker container

docker run -it -e DISPLAY -v ~/Projects:/home//Projects --net=host emacs-native-comp

this will give you a bash shell with emacs29 linked to emacs, so just type emacs to start.

This is useful for debugging, especially as the correct .Xauthority file needs to be passed in for graphics to work. We do this in our docker-spacemacs github repo.

About

Docker file to build emacs 28 with native compilation (should be faster)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published