emacsclient Command Examples

Open files in an existing Emacs server. See also emacs. More information: https://www.emacswiki.org/emacs/EmacsClient.

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)'