diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-05-02 15:09:56 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-05-02 15:09:56 +0800 |
commit | 2c6e249a6bbd64a63b26ea1b7c2be1119037e5df (patch) | |
tree | 5045a92c464a294e12652df6eea27d82336df8de /_zsh | |
parent | 224577665e9fa443c1325a4ff342a58533f81866 (diff) | |
download | dotfiles-2c6e249a6bbd64a63b26ea1b7c2be1119037e5df.tar.bz2 |
_zsh: adjust emacs aliases
Diffstat (limited to '_zsh')
-rw-r--r-- | _zsh/80-emacs.zsh | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/_zsh/80-emacs.zsh b/_zsh/80-emacs.zsh index 501ddb2..8ccd100 100644 --- a/_zsh/80-emacs.zsh +++ b/_zsh/80-emacs.zsh @@ -20,18 +20,20 @@ function _emacsclient() { fi } -alias emacs='_emacsclient -t' -alias e=emacs -# Same as 'M-x eval' but outside of Emacs -alias eeval='_emacsclient --eval' -# Create a new X frame -alias eframe='_emacsclient --create-frame --no-wait' - # Write to stdout the path to the file opened in the current buffer function efile() { local cmd="(buffer-file-name (window-buffer))" _emacsclient --eval "$cmd" | tr -d '"' } +# Same as 'M-x eval' but outside of Emacs +alias eeval='_emacsclient --eval' +# Create a new X frame +alias eframe='_emacsclient --create-frame --no-wait' + +alias emacs='_emacsclient -t' +alias e=emacs +alias ef=eframe + # vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: # |