Emacs shortcuts

Shortcut reminders for GUN Emacs.

“M” = Esc; “C” = Ctl; “S” = Shift

Windows

  • C-x 2 # split into 2 windows
  • C-x 1 # keep only the current window
  • C-x 0 # shift to another window

Some basics

  • C-x u = C_ # undo
  • C-x C-f # find a file
  • C-g # cancel command
  • C-l # move to the middle
  • C-e / C-a # sentence end/head

Emacs Shell

  • M-x shell # enter shell mode
  • M-h –> ESC-l # use marked region to shell
  • C-c C-u # earase current line
  • C-c C-w # erase previous word
  • C-c C-z # suspend current job
  • C-c C-c # terminate current job
  • C-c C-o # delete last output
  • C-c C-y # to another buffer
  • M-p # retrieves the last command

Select text

  • letter by letter: S+ left/right
  • word by word: S+Alt+ left/right ctrl+alt+left/right
  • select all: Ctrl+S+alt+A

Move cursor

  • from here to the end/beginning: ctrl+S+End/Home
  • from here to the next ]: Ctrl+S+]
  • to the previous/next lines: S+up/down | S+Pageup/Pagedown
  • from here to the previous position: Ctrl+=
comments powered by Disqus
CC-BY-NC 4.0
Built with Hugo Theme Stack