chore(emacs): improve shell setup

This commit is contained in:
2021-05-15 22:49:52 +01:00
parent 5b0551bad8
commit d12f5f38e1
3 changed files with 41 additions and 20 deletions

14
zshenv
View File

@@ -146,6 +146,20 @@ export KUBECONFIG="$HOME/.kube/config:.kube/config"
# Use custom emacs install if available
path_prepend "/opt/emacs/bin"
# Set Emacs-related environment variables
export EMACS="emacs"
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
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
path_prepend "/opt/tmux/bin"