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.
This commit is contained in:
parent
bc512c7e5d
commit
d4c96992ad
2 changed files with 12 additions and 1 deletions
11
site-modules/core/files/oh-my-zsh/custom/emacs.zsh
Normal file
11
site-modules/core/files/oh-my-zsh/custom/emacs.zsh
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
|
@ -27,7 +27,7 @@ COMPLETION_WAITING_DOTS="true"
|
||||||
# More plug-ins are loaded in ~/.oh-my-zsh/custom/lib/misc.zsh file so we dint
|
# More plug-ins are loaded in ~/.oh-my-zsh/custom/lib/misc.zsh file so we dint
|
||||||
# have to define all of the custom installed plug ins here.
|
# have to define all of the custom installed plug ins here.
|
||||||
#
|
#
|
||||||
plugins=(git emacs nvim extract)
|
plugins=(git nvim extract)
|
||||||
|
|
||||||
#
|
#
|
||||||
# map ecs to caps lock
|
# map ecs to caps lock
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue