I have a script to launch OSX GUI emacs from command line at:
The script looks like:
#!/bin/sh $(/Applications/Emacs.app/Contents/MacOS/Emacs --chdir $PWD "$@") &
I have configured a bash
$EDITOR environment variable:
I want git to open the GUI emacs for commit messages and rebase messages
If I try to commit:
evs-MBP:skeletal-animation-system kev$ echo "cool" >> fake.js Kevs-MBP:skeletal-animation-system kev$ git add fake.js Kevs-MBP:skeletal-animation-system kev$ git commit Aborting commit due to empty commit message.
This will launch the GUI prepopulated with the correct commit prompt however I believe because the command runs in the emacs command runs in the background git thinks it immediately quits.
Similiar undesired behavior happens with a rebase.
Kevs-MBP:skeletal-animation-system kev$ git rebase -i origin/master Successfully rebased and updated refs/heads/rebase-test.
The rebase is automatically completed. I'm assuming again because the processes detaches and git thinks it completed.
I'm looking for a way to use GUI emacs with the git command line tool.