From 2212138288815cb04292e891cf4b25852c4b7a7f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 25 Sep 2020 12:25:52 +0100 Subject: [PATCH] chore(emacs): update emacs shell setup --- zsh/emacs.zsh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zsh/emacs.zsh b/zsh/emacs.zsh index 210e9cc..fda71ea 100644 --- a/zsh/emacs.zsh +++ b/zsh/emacs.zsh @@ -5,8 +5,9 @@ # macOS systems if [[ "$OSTYPE" == "darwin"* ]]; then if [ -f "/Applications/Emacs.app/Contents/MacOS/Emacs" ]; then - alias emacsgui="env TERM=screen-24bit /Applications/Emacs.app/Contents/MacOS/Emacs" - alias emacs="env TERM=screen-24bit /Applications/Emacs.app/Contents/MacOS/Emacs -nw" + export EMACS="/Applications/Emacs.app/Contents/MacOS/Emacs" + alias emacsgui="env TERM=screen-24bit $EMACS" + alias emacs="env TERM=screen-24bit $EMACS -nw" fi if [ -f "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient" ]; then @@ -14,7 +15,11 @@ if [[ "$OSTYPE" == "darwin"* ]]; then fi fi +# Linux systems if [[ "$OSTYPE" == "linux"* ]]; then alias emacs="env TERM=screen-24bit emacs -nw" alias emacsclient="env TERM=screen-24bit emacsclient" fi + +# add doom-emacs' bin directory to path if it exists +path_prepend "$HOME/.config/doom-emacs/bin"