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,782
  • 19
  • 49

1 Answers1

11

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

shackra
  • 2,782
  • 19
  • 49