Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akirak/nix-magit
Use Magit from anywhere without configuring Emacs
https://github.com/akirak/nix-magit
magit
Last synced: 7 days ago
JSON representation
Use Magit from anywhere without configuring Emacs
- Host: GitHub
- URL: https://github.com/akirak/nix-magit
- Owner: akirak
- License: mit
- Created: 2019-09-07T13:13:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-27T07:49:29.000Z (10 months ago)
- Last Synced: 2024-04-24T03:05:46.526Z (7 months ago)
- Topics: magit
- Language: Nix
- Homepage:
- Size: 7.81 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* Running Magit as a Nix App
This is a Nix flake runs Emacs with [[https://magit.vc/][Magit]], a Git porcelain inside Emacs.
It is inspired by [[https://github.com/vlandeiro/magit-docker][magit-docker]] (or [[https://www.reddit.com/r/emacs/comments/d0qnbf/dockerized_magit/][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:
#+begin_src bash
nix run github:akirak/nix-magit --no-write-lock-file
#+end_srcIf you haven't enabled flakes, you can temporarily enable the feature:
#+begin_src bash
nix run github:akirak/nix-magit --no-write-lock-file \
--extra-experimental-features nix-command \
--extra-experimental-features flakes
#+end_srcThere is also an evil version (i.e. vi keybindings):
#+begin_src bash
nix run github:akirak/nix-magit#evil --no-write-lock-file
#+end_srcYou could define an alias for the command:
#+begin_src shell
alias magit='nix run github:akirak/nix-magit --no-write-lock-file'
#+end_src
** License
MIT License