Skip to content
play

GitHub Action

Set up Emacs

v6.0 Latest version

Set up Emacs

play

Set up Emacs

Install a specific Emacs version for use in your workflow

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Set up Emacs

uses: purcell/setup-emacs@v6.0

Learn more about this action in purcell/setup-emacs

Choose a version

Build Status Support me

A Github Action that installs a specific emacs version

Uses nix-emacs-ci to provide binaries for a number of different Emacs versions.

Since that project uses Nix, Nix will be installed automatically if necessary.

Note also that only Linux and MacOS are supported, since Nix is not available on Windows.

Check out examples of using this Action in the wild in 1500+ repositories.

See the actions tab for runs of this action! 🚀

Usage:

uses: purcell/setup-emacs@master
with:
  version: 24.5

The emacs executable on the path will then be the requested version. For a list of available versions, please see the nix-emacs-ci project.

For an example of real-life usage, see the Actions config for package-lint.


Note about compiling binary emacs modules

Here's an example of a project which compiles binary modules against an Emacs installed with this method.

💝 Support this project and my other Open Source work via Patreon

💼 LinkedIn profile

✍ sanityinc.com

🐦 @sanityinc