The Computer Oracle

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

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Fantascape Looping

--

Chapters
00:00 How Can I Run Mac Osx Graphical Emacs In Daemon Mode?
01:30 Accepted Answer Score 15
02:21 Answer 2 Score 2
02:42 Answer 3 Score 1
03:02 Thank you

--

Full question
https://superuser.com/questions/50095/ho...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #emacs

#avk47



ACCEPTED ANSWER

Score 15


  1. You've got this handled
  2. 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'
    
  3. emacsclient -nw
  4. 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.




ANSWER 2

Score 2


Yes, here is an pretty comprehensive explain about how to do this nicely. I tried several methods to get it working nicely, but no better than what they described here.

https://gist.github.com/304964

Cheers!




ANSWER 3

Score 1


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.