Emacs server

From WikEmacs
Revision as of 17:55, 26 March 2012 by 216.171.97.194 (talk) (Created page with "Emacs includes an optional client-server architecture. To start the server, run <code>server-start</code>. If you want to use this feature it probably makes sense to do this ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Emacs includes an optional client-server architecture.

To start the server, run server-start. If you want to use this feature it probably makes sense to do this somewhere in your configuration files.

Once this is done you may use the emacsclient command outside of Emacs to send a file to Emacs for editing, e.g. emacsclient ~/.emacs.d/init.el to modify your init file. On a GNU/Linux system it might be a good idea to set your EDITOR environment variable to emacsclient.

Once you have finished with a buffer that was opened via emacsclient you should use the C-x # (server-edit) to properly close the loop. Killing the buffer normally will not send the signal to emacsclient that Emacs has finished with the file.