Copied to clipboard

emacs

Emacs is a powerful text editor that can be operated through command line. It has many customization options and plugins that allow users to highly customize the editor.

Examples

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