An open API service indexing awesome lists of open source software.

https://github.com/alphapapa/magit.sh

Run Magit in a separate Emacs instance
https://github.com/alphapapa/magit.sh

emacs magit

Last synced: 3 months ago
JSON representation

Run Magit in a separate Emacs instance

Awesome Lists containing this project

README

        

#+TITLE: magit.sh

Run a standalone Magit editor! To improve startup speed, this script ignores the user's Emacs init files and only loads the Emacs libraries Magit requires.

Note that this does /not/ install any packages. Magit and its dependencies must already be installed in =~/.emacs.d=.

* Using a separate Emacs configuration

If you would prefer to run Magit separately from your main Emacs /configuration/, you could do so easily using [[https://github.com/alphapapa/emacs-sandbox.sh][emacs-sandbox.sh]]. For example:

+ Make a directory in which to install Magit and its dependencies, e.g. =~/.local/lib/emacs-sandbox/magit=.
+ Run this command to install Magit and its dependencies into that directory:

#+BEGIN_SRC shell
emacs-sandbox.sh -d ~/.local/lib/emacs-sandbox/magit -i magit -- -f kill-emacs
#+END_SRC

+ Use this command to run Emacs in that config and call =magit-status= directly:

#+BEGIN_SRC shell
emacs-sandbox.sh --no-refresh-packages -d ~/.local/lib/emacs-sandbox/magit -- -f magit-status -f delete-other-windows
#+END_SRC

You could put that command into a =magit.sh= script, or use it as a shell alias.