Dotfiles/site-modules/core/files/oh-my-zsh/custom/emacs.zsh
Ade Attwood d4c96992ad refactor(shell): remove emacs zsh plugin and create my own
This dose the same thing as the built in oh-my-zsh plugin but this one can
update the paths to emacs that it will be used.

This will allow you to use a custom compiled version of emacs for testing and /
or pinning the version you want with the features you need.
2021-11-21 16:13:12 +00:00

11 lines
457 B
Bash

# export EMCAS_BINARY="/usr/bin/emacs"
# export EMACS_CLIENT="/usr/bin/emacsclient"
export EMACS_BINARY="$HOME/Code/src/github.com/emacs-mirror/emacs/src/emacs"
export EMACS_CLIENT="$HOME/Code/src/github.com/emacs-mirror/emacs/lib-src/emacsclient"
export EMACS_PLUGIN_LAUNCHER="$EMACS_CLIENT --alternate-editor '$EMACS_BINARY --daemon && $EMACS_CLIENT'"
alias emacs="$EMACS_PLUGIN_LAUNCHER --no-wait"
alias e=emacs
alias te="$EMACS_PLUGIN_LAUNCHER -nw"