mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 03:06:40 +00:00
chore(emacs): improve emacs binary setup
Check for and use /Applications/Emacs.app/Contents/MacOS/bin/emacs if it exists.
This commit is contained in:
7
zshenv
7
zshenv
@@ -152,12 +152,11 @@ export EMACSCLIENT="emacsclient"
|
||||
|
||||
# On macOS we want to use the Emacs.app application bundle
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
if [ -f "/Applications/Emacs.app/Contents/MacOS/Emacs" ]; then
|
||||
path_prepend "/Applications/Emacs.app/Contents/MacOS/bin"
|
||||
if [ ! -f "/Applications/Emacs.app/Contents/MacOS/bin/emacs" ] && \
|
||||
[ -f "/Applications/Emacs.app/Contents/MacOS/Emacs" ]; then
|
||||
export EMACS="/Applications/Emacs.app/Contents/MacOS/Emacs"
|
||||
fi
|
||||
if [ -f "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient" ]; then
|
||||
export EMACSCLIENT="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Use custom tmux install if available
|
||||
|
||||
Reference in New Issue
Block a user