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 {{[-nw|--no-window-system]}} {{path/to/file}}

emacsclient {{[-c|--create-frame]}} {{path/to/file}}

emacsclient {{[-e|--eval]}} '({{command}})'

emacsclient {{[-a|--alternate-editor]}} {{editor}} {{path/to/file}}

emacsclient {{[-e|--eval]}} '(save-buffers-kill-emacs)'