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
- Host: GitHub
- URL: https://github.com/alphapapa/magit.sh
- Owner: alphapapa
- License: gpl-3.0
- Created: 2020-04-05T10:17:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-30T18:25:19.000Z (about 4 years ago)
- Last Synced: 2023-03-23T00:28:51.917Z (over 2 years ago)
- Topics: emacs, magit
- Language: Shell
- Size: 16.6 KB
- Stars: 26
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
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_SRCYou could put that command into a =magit.sh= script, or use it as a shell alias.