Last Updated: February 25, 2016
·
3.101K
· mgile

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:

http://emacsformacosx.com

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"

Picture

Then simply save as an Application:

Picture

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.

1 Response
Add your response

Thanks

over 1 year ago ·