Created
March 9, 2011 09:42
-
-
Save hamsolodev/861952 to your computer and use it in GitHub Desktop.
only start the emacs server if it's not already running, and set up
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
(if (file-exists-p | |
(concat (getenv "TMPDIR") "emacs" | |
(number-to-string | |
(user-real-uid)) "/server")) | |
nil (server-start)) |
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
# I use the Emacs package from emacsformacosx.com | |
alias emacs='open -a emacs' | |
alias emacsclient='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient' | |
alias ec='emacsclient -a /Applications/Emacs.app/Contents/MacOS/Emacs' | |
export EDITOR='ec' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment