Skip to content

Use Magit from anywhere without configuring Emacs

License

Notifications You must be signed in to change notification settings

akirak/nix-magit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running Magit as a Nix App

This is a Nix flake runs Emacs with Magit, a Git porcelain inside Emacs. It is inspired by magit-docker (or Dockerized Magit) but uses Nix instead of Docker.

Prerequisites

This flake is supported on the following platforms:

  • Linux: =x86_64-linux=​ and =aarch64-linux=​
  • MacOS: =aarch64-darwin=​ and =x86_64-darwin=​

You also need Nix package manager, which you can install by following the instructions from here: https://nixos.org/download.html

Usage

This project is provided as a Nix flake, so you can run it directly without installation.

If you have already installed Nix with flakes enabled, you can start magit by running the following command inside a Git repository:

nix run github:akirak/nix-magit --no-write-lock-file

If you haven’t enabled flakes, you can temporarily enable the feature:

nix run github:akirak/nix-magit --no-write-lock-file \
    --extra-experimental-features nix-command \
    --extra-experimental-features flakes

There is also an evil version (i.e. vi keybindings):

nix run github:akirak/nix-magit#evil --no-write-lock-file

You could define an alias for the command:

alias magit='nix run github:akirak/nix-magit --no-write-lock-file'

License

MIT License

About

Use Magit from anywhere without configuring Emacs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published