Bump .emacs.d. Make e run slightly different commands based on whether

or not arguments were passed.
This commit is contained in:
Ivan Malison 2014-11-19 23:15:16 -08:00
parent cdc5ed53cf
commit de5ec6dcad
2 changed files with 5 additions and 2 deletions

@ -1 +1 @@
Subproject commit 2ca32d970c859d8d133958db101ce0d7c6b7bfea
Subproject commit b274677eef4716f3043da174f2c619c45382f5b2

View File

@ -1,10 +1,13 @@
alias e='emacs_open -n '
alias emacs='_emacs -c -n '
is_osx && alias emacs='cocoa_emacs'
alias terminal_emacs='_emacs -t'
export GLOBAL_EMACS=""
is_ssh && emacs="terminal_emacs"
function e {
[ ! -z "$*" ] && emacs || emacs_open -n "$@"
}
function cocoa_emacs {
reattach-to-user-namespace zsh -c 'source ~/.zshrc && _emacs -c -n "$@"'
}