Created
March 21, 2015 06:43
-
-
Save metachu/acf7a96f798c63777093 to your computer and use it in GitHub Desktop.
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
function emacs | |
echo "Using emacs client/daemon loader in config.fish..." | |
if ps -ef | grep "emacs --daemon" | grep -v grep | grep (whoami) | |
env emacsclient -t $argv | |
else | |
emacs --daemon | |
env emacsclient -t $argv | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for the fish shell: Checks if emacs daemon is started and runs emacs daemon. If it is not up then start up daemon and then start the client.