emacsclient Command Examples

Open files in an existing Emacs server. See also emacs. More information: https://www.gnu.org/software/emacs/manual/html_node/emacs/emacsclient-Options.html.

emacsclient {{path/to/file}}

emacsclient --no-window-system {{path/to/file}}

emacsclient --create-frame {{path/to/file}}

emacsclient --eval '({{command}})'

emacsclient --alternate-editor {{editor}} {{path/to/file}}

emacsclient --eval '(save-buffers-kill-emacs)'