Add new plugin emacs, to take benefit of daemon capabilities of emacs >=23

This commit is contained in:
Tristan Carel
2011-04-13 17:34:51 +02:00
parent bbf1f87ee6
commit 2fba4486bf
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# Use daemon capabilities of emacs 23
if "$ZSH/tools/require_tool.sh" emacs 23 2>/dev/null ; then
export EDITOR="$ZSH/plugins/emacs/emacsclient.sh"
alias emacs="$EDITOR --no-wait"
alias e=emacs
alias emasc=emacs
alias emcas=emacs
# create a new X frame
alias emacs_frame='emacsclient --alternate-editor "" --create-frame'
fi