Skip to content

Instantly share code, notes, and snippets.

@hamsolodev
Created March 9, 2011 09:42
Show Gist options
  • Save hamsolodev/861952 to your computer and use it in GitHub Desktop.
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
(if (file-exists-p
(concat (getenv "TMPDIR") "emacs"
(number-to-string
(user-real-uid)) "/server"))
nil (server-start))
# 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