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.
11 lines
457 B
Bash
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"
|