diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2021-04-10 02:08:22 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2021-04-10 02:08:22 +0100 |
| commit | c345b1dd02b9bb182fa1fbe256e1c2bf18159b2e (patch) | |
| tree | e924a1792994004251c5e289d6b571198899c1cb /dotfiles-darwin/zsh/rc | |
| parent | 6abd08d4ef4ef14ca74210431ab2ddb5de488c57 (diff) | |
darwin/zsh: Add support for a custom Emacs.app
Diffstat (limited to 'dotfiles-darwin/zsh/rc')
| -rw-r--r-- | dotfiles-darwin/zsh/rc | 7 |
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 +} |
