emacs file.txt
: open the file.txt
fileemacs file1.txt file2.txt
: open both file1.txt
and file2.txt
filesemacs -nw file.txt
: open the file.txt
file in no-window modeemacs -q
: start Emacs in no-config modeemacs -nw --no-init-file
: start Emacs in no-window mode and without loading the init fileemacs -nw -Q
: start Emacs in no-window mode and without loading any Lisp filesemacs -nw --eval "(split-window-horizontally)"
: start Emacs in no-window mode and split windows horizontallyemacs --daemon
: start Emacs in background daemon modeemacsclient file.txt
: open the file.txt
file using Emacs clientemacsclient -a "" file.txt
: if Emacs is not running, start Emacs and open the file.txt
fileemacsclient -c file.txt
: open the file.txt
file in GUI modeemacsclient -t file.txt
: open the file.txt
file in terminal mode