This blog post is a reference guide to common keybindings in Emacs. It’s organized by functionality (Buffer, Moving in Buffer, Window, Help, Mode, Utility) and lists each command along with its Emacs keybinding. The post focuses on frequently used commands for buffer management, navigation, window manipulation, accessing help, toggling line numbers, and changing file encoding. It’s a practical resource for quickly looking up how to perform core Emacs actions.

Buffer

  • Display a list of existing buffers. use list-buffers, bound to C-x C-b.
  • Switch buffer. switch-to-buffer, bound to C-x b.
  • Kill the buffer. use M-x kill-buffer, bound to C-x k.

Moving in buffer

  • Go to LINE, counting from line 1 at beginning of buffer. use goto-line, bound to M-g g.
  • Scroll text of selected window upward. use M-x scroll-up-command, bound to C-v.
  • Scroll text of selected window down. use M-x scroll-down-command, bound to M-v.
  • Move point to the beginning of the buffer. use M-x beginning-of-buffer, bound to M-<.
  • Move point to the end of the buffer. use M-x end-of-buffer, bound to M->.

Window

  • Delete cursor at window. use M-x delete-window, bound to C-x 0.
  • Make WINDOW fill its frame. use delete-other-windows, bound to C-x 1.
  • Split the selected window into two windows, the selected window is above. use M-x split-window-below, bound to C-x 2.
  • Split the selected window into two side-by-side windows,The selected window is on the left. use split-window-right, bound to C-x 3.
  • Select another window in cyclic ordering of windows. use M-x other-window, bound to C-x o.

Help Command

  • Show functions that match PATTERN. if find funtion include “font”, type “\font”, then press Enter. M-x apropos-function

Mode

  • Toggle line number display in the mode line.M-x line-number-mode

Utility

  • change file line ending between Windows/Unix/Mac. M-x set-buffer-file-coding-system