Restarting the Emacs Daemon Within emacs
Intro If you run Emacs as a daemon (and you should), you know the drill: you update your config, install a new package, or tweak some settings, and now you need to restart. The typical approach is to kill the daemon from the terminal and start it again manually. It works, but it’s clunky. There’s a better way. A simple Emacs function that saves your work, restarts the daemon cleanly, and gets you back up and running without leaving Emacs....