reattach-to-user-namespace for emacs.

This commit is contained in:
Ivan Malison 2015-06-21 20:38:48 -04:00
parent dd506e1a26
commit 9249943ea6
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
#!/usr/bin/env zsh
if is_osx; then
reattach-to-user-namespace emacsclient "$@"
else
emacsclient "$@"
fi
return 0

View File

@ -9,8 +9,8 @@
# alias terminal_emacs='_emacs -t'
# is_ssh && emacs="terminal_emacs"
alias emacs='emacsclient -tn'
is_osx && alias emacs='emacsclient -cn'
alias emacs='emacsclient -t -n'
is_osx && alias emacs='reattach-to-user-namespace emacsclient -c -n'
function kill_all_emacs {
emacs_pids | xargs kill -9