emacs daemon

emacs daemon

May 16, 2024 | seedling, permanent

tags :

Summary #

Running Emacs in client/server or daemon mode.

Running Multiple instances #

To separate emacs servers as, e.g., “work” and “personal” http://yitang.uk/2023/02/09/emacs-as-service-in-macos/ Using lauchd to run the different daemons on startup.

``` /Users/jaavedkhan/Library/LaunchAgents/emacs.plist

<plist version=“1.0”> <dict> <key>Label</key> <string>emacs</string> <key>ProgramArguments</key> <array> <string>/opt/homebrew/opt/emacs-plus@28/bin/emacs</string> <string>–fg-daemon=work</string> <string>–debug-init</string> </array> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <true/> <key>StandardOutPath</key> <string>/tmp/emacs.stdout.log</string> <key>StandardErrorPath</key> <string>/tmp/emacs.stderr.log</string> </dict> </plist>

``` https://oracleyue.github.io/post/emacs-setup-md/

helpful references #

http://yitang.uk/2023/02/09/emacs-as-service-in-macos/

With emacs-plus #

Installation provides services that can be controlled with brew services

brew services start emacs-plus@29

CS #

To view running server socket

lsof -c Emacs | grep server | tr -s " " | cut -d' ' -f8

`emacsclient –help`

helpful references #

https://github.com/d12frosted/homebrew-emacs-plus/issues/490 https://www.hhyu.org/posts/emacs_clientserver/


Links to this note

Go to random page

Previous Next