emacsclient

emacsclient

TLDR

Open a file in an existing Emacs server (using GUI if available)

$ emacsclient [path/to/file]
copy

Open a file in console mode (without an X window)

$ emacsclient --no-window-system [path/to/file]
copy

Open a file in a new Emacs window

$ emacsclient --create-frame [path/to/file]
copy

Evaluate a command, printing the output to stdout, and then quit

$ emacsclient --eval '([command])'
copy

Specify an alternative editor in case no Emacs server is running

$ emacsclient --alternate-editor [editor] [path/to/file]
copy

Stop a running Emacs server and all its instances, asking for confirmation on unsaved files

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

Copied to clipboard
Dodo Farming