summaryrefslogtreecommitdiff
path: root/dotfiles-darwin/zsh/rc
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2021-04-10 02:08:22 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2021-04-10 02:08:22 +0100
commitc345b1dd02b9bb182fa1fbe256e1c2bf18159b2e (patch)
treee924a1792994004251c5e289d6b571198899c1cb /dotfiles-darwin/zsh/rc
parent6abd08d4ef4ef14ca74210431ab2ddb5de488c57 (diff)
darwin/zsh: Add support for a custom Emacs.app
Diffstat (limited to 'dotfiles-darwin/zsh/rc')
-rw-r--r--dotfiles-darwin/zsh/rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/dotfiles-darwin/zsh/rc b/dotfiles-darwin/zsh/rc
index cf77a4f..0971457 100644
--- a/dotfiles-darwin/zsh/rc
+++ b/dotfiles-darwin/zsh/rc
@@ -5,3 +5,10 @@ alias ls='ls -G'
alias lsh='du -a | sort -h'
alias pip=pip3
alias python=python3
+
+() {
+ local emacs=~/Applications/Emacs.app/Contents/MacOS/Emacs
+ if ! which emacs >/dev/null && [[ -x ${emacs} ]]; then
+ alias emacs=${emacs}
+ fi
+}