1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00
ohmyzsh/plugins/emacs/emacs.plugin.zsh

11 lines
354 B
Bash

# 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