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 #!/usr/bin/env zsh
if is_osx; then
reattach-to-user-namespace emacsclient "$@"
else
emacsclient "$@" emacsclient "$@"
fi
return 0 return 0

View File

@ -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