Home » Questions » Computers [ Ask a new question ]

How can I run Mac OSX graphical Emacs in daemon mode?

How can I run Mac OSX graphical Emacs in daemon mode?

Short form: I want to run the Mac OSX version of Emacs found on http://emacsformacosx.com/ as a daemon, with graphical and text clients connecting to it as-needed.

Asked by: Guest | Views: 256
Total answers/comments: 2
bert [Entry]

"You've got this handled
Yes, you'll want to use emacsclient. To get a new frame, add the -c option. I have an alias to make it quicker and to tell emacsclient not to wait for emacs server to return:

alias em='emacsclient -n'

emacsclient -nw
I'm not sure about this. I start Emacs once and always load new files either within emacs or using my em alias.

Update:

Check out this tip documenting how to use Platypus to create an app wrapper around emacsclient. You could then use ""Open With..."" to launch using your new app wrapper."
bert [Entry]

"For 4. put this in your .emacs:

(setq ns-pop-up-frames nil)

The solution of creating a Mac .app (with Platypus) does not work because Mac won't open the same application twice."