Last active
September 9, 2017 05:34
-
-
Save trydofor/58443b41a932ac5d2a3df35b74cf596a to your computer and use it in GitHub Desktop.
emacs-client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ -z $(ps -C 'emacs --daemon' -o pid=) ]]; then | |
env LC_CTYPE=zh_CN.UTF-8 emacs --daemon | |
fi | |
/usr/bin/emacsclient "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment