forked from colonelpanic/dotfiles
Bump .emacs.d. Make e run slightly different commands based on whether
or not arguments were passed.
This commit is contained in:
parent
cdc5ed53cf
commit
de5ec6dcad
@ -1 +1 @@
|
|||||||
Subproject commit 2ca32d970c859d8d133958db101ce0d7c6b7bfea
|
Subproject commit b274677eef4716f3043da174f2c619c45382f5b2
|
@ -1,10 +1,13 @@
|
|||||||
alias e='emacs_open -n '
|
|
||||||
alias emacs='_emacs -c -n '
|
alias emacs='_emacs -c -n '
|
||||||
is_osx && alias emacs='cocoa_emacs'
|
is_osx && alias emacs='cocoa_emacs'
|
||||||
alias terminal_emacs='_emacs -t'
|
alias terminal_emacs='_emacs -t'
|
||||||
export GLOBAL_EMACS=""
|
export GLOBAL_EMACS=""
|
||||||
is_ssh && emacs="terminal_emacs"
|
is_ssh && emacs="terminal_emacs"
|
||||||
|
|
||||||
|
function e {
|
||||||
|
[ ! -z "$*" ] && emacs || emacs_open -n "$@"
|
||||||
|
}
|
||||||
|
|
||||||
function cocoa_emacs {
|
function cocoa_emacs {
|
||||||
reattach-to-user-namespace zsh -c 'source ~/.zshrc && _emacs -c -n "$@"'
|
reattach-to-user-namespace zsh -c 'source ~/.zshrc && _emacs -c -n "$@"'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user