Sunday, October 15, 2017

Setup EMACS (Emacs Server) running as a daemon

1. run emacs as a daemon
1.1 start emacs as a server in existing instance - server stops with current Emacs process

a. M-x server-start

b. put (server-start) in init file

1.2 run emacs as a daemon

emacs --daemon

1.3 run multiple emacs daemons.

emacs --daemon=server1


2. run an emacs client to use daemon
emacsclient <filename>
emacsclient -s socket-name <filename>
emacsclient --socket-name=socket-name <filename>
emacsclient -f server-file <filename>
emacsclient --server-file=server-file <filename>
emacsclient --alternate-editor <filename>


No comments:

Post a Comment

Setup EMACS (Emacs Server) running as a daemon

1. run emacs as a daemon 1.1 start emacs as a server in existing instance - server stops with current Emacs process a. M-x server-start ...