Emacs Daemon MacOSX Workflow
If you like using Emacs but would like better integration with Mac OSX, try the following:
First, get yourself a no frills copy of GNU Emacs from:
Next, create aliases for all your common operations:
Launch Emacs Daemon
alias emd = '/Applications/Emacs.app/Contents/MacOS/Emacs --daemon'
Emacs Client Using Existing Frame (if applicable)
alias em = '/Applications/Emacs.app/Contents/MacOS/bin/emacsclient --no-wait'
Emacs Client In New Frame
alias emn = '/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c --no-wait'
Adding Emacs Daemon As Login Item
Finally, so we have nice shiny .app's to use, fire up AppleScript Editor and create a new empty project with the following script:
do shell script "/Applications/Emacs.app/Contents/MacOS/Emacs --daemon"
Then simply save as an Application:
Once you've created your EmacsDaemon.app bundle, add it to your login items in System Preferences -> Users & Groups
Now everytime you login you'll have a handy-dandy emacs server at your disposal. The power of emacs is only a em myfile.c away.
Written by Michael Gile
Related protips
1 Response
Thanks
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Daemon
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#