10

I want to know if emacs is running as a daemon, so I can load some parts of my configuration according, I want to know this from within emacs.

shackra
  • 2,702
  • 18
  • 47

1 Answers1

11

Simply use (daemonp) which will return t if emacs is running as a daemon.

shackra
  • 2,702
  • 18
  • 47