Commit 2fba4486 authored by Tristan Carel's avatar Tristan Carel
Browse files

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

parent bbf1f87e
# 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
#!/bin/sh
# Starts emacs daemon if not already started.
x=`emacsclient --alternate-editor '' --eval '(x-display-list)' 2>/dev/null`
if [ -z "$x" ] ;then
emacsclient --alternate-editor "" --create-frame $@
else
emacsclient --alternate-editor "" $@
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment