I have emacs on OS X that comes pre-installed, and is found in /usr/bin/emacs
. It does not allow me to run it as a bg process (using &) and does not present me with a nice GUI.
I therefore installed the GUI package of emacs, which gets installed in /Applications/Emacs.app/Contents/MacOS
- the executable name is Emacs
.
I want my OS X to always point to /Applications/Emacs.app/Contents/MacOS/Emacs
instead of /usr/bin/emacs
. I updated my .profile
and added the path of graphical Emacs to the PATH.
Now if I run which emacs
, it results in:
/Applications/Emacs.app/Contents/MacOS/emacs
- Why would this work? Why is the Emacs GUI app now used instead of the pre-installed one?
- Why is the system printing 'emacs' in lowercase while the actual application name starts with an upper case?