forked from colonelpanic/dotfiles
reattach-to-user-namespace for emacs.
This commit is contained in:
parent
dd506e1a26
commit
9249943ea6
@ -1,3 +1,8 @@
|
|||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
emacsclient "$@"
|
if is_osx; then
|
||||||
|
reattach-to-user-namespace emacsclient "$@"
|
||||||
|
else
|
||||||
|
emacsclient "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
# alias terminal_emacs='_emacs -t'
|
# alias terminal_emacs='_emacs -t'
|
||||||
# is_ssh && emacs="terminal_emacs"
|
# is_ssh && emacs="terminal_emacs"
|
||||||
|
|
||||||
alias emacs='emacsclient -tn'
|
alias emacs='emacsclient -t -n'
|
||||||
is_osx && alias emacs='emacsclient -cn'
|
is_osx && alias emacs='reattach-to-user-namespace emacsclient -c -n'
|
||||||
|
|
||||||
function kill_all_emacs {
|
function kill_all_emacs {
|
||||||
emacs_pids | xargs kill -9
|
emacs_pids | xargs kill -9
|
||||||
|
Loading…
Reference in New Issue
Block a user