M-<
... move to the beginning of buffer
M->
... move to the end of buffer
M-<right> or C-<right>
... move forward one word
M-g g
... goto line
M-g <TAB>
... goto column
C-x r <SPC> r
... save position of point in register r (point-to-register)
C-x r j r
... jump to the position saved in register r (jump-to-register)
C-x =
... displays a message describing the character at point
M-=
... display the number of lines, words, and characters that are present in the region (count-words-region)
M-x whitespace-mode
... lets you "visualize" many kinds of whitespace in the buffer
M-<TAB>
... complete the word before point based on the spelling dictionary
M-x flyspell-mode
... enable flyspell mode, which highlights all misspelled words
C-x C-v
... visit a different file instead of the one visited last
M-x untabify
... changes all tabs in the region to appropriate numbers of spaces
M-x tabify
... scans the region for sequences of spaces, and converts sequences of at least two spaces to tabs if that can be done without changing indentation
M-x delete-trailing-whitespace
... deletes all extra spaces at the end of each line in the buffer, and all empty lines at the end of the buffer (to ignore the latter, change the variable delete-trailing-lines to nil)
M-x replace-regexp RET ^ RET > RET
... insert '>' in front of every line in the buffer
M-x replace-regexp RET $ RET > RET
... insert '>' at the end of every line in the buffer
C-x TAB
... ident regidly (then use Left or Right)
C-x RET r utf-8 RET
... set the file encoding to utf-8
C-x RET f (set-buffer-file-coding-system) <encoding>
... sets the buffer encoding to
C-x C-o
... delete all but one of many consecutive blank lines (delete-blank-lines)
C-x r s r
... copy region into register r (copy-to-register)
C-x r i r
... insert text from register r (insert-register)
C-x C-t
... transpose two lines (transpose-lines)
C-x i
... insert file at cursor position
M-- M-l
... convert last word to lower case. Note Meta-- is Meta-minus
M-- M-u
... convert last word to all upper case
M-- M-c
... convert last word to lower case with capital initial
M-x downcase-region / M-x upcase-region
... convert the entire region to lower case / upper case
M-%
... replace text within a selected buffer
M-k
... kill to end of sentence
M-
... kill back to the beginning of the previous word (backward-kill-word)
M-d
... kill forward to the end of the next word (kill-word)
C-M-o
... split the current line at point
C-M-\
... indent region
C-x z
... repeats the last command once
C-u 5 C-n
... would move down five lines.
C-q C-j
... newline (used in replace-string)
М-;
... comment / uncomment region (Python)
M|
... run shell command on region
M-/
... auto-completes a word. If it doesn’t guess what you’re typing right the first time, keep pressing it until it completes
C-x r m <RET>
... set the bookmark for the visited file, at point
C-x r m bookmark <RET>
... set the bookmark named bookmark at point (bookmark-set)
C-x r b bookmark <RET>
... jump to the bookmark named bookmark (bookmark-jump)
C-x r l
... list all bookmarks (list-bookmarks).
M-x bookmark-save
... save all the current bookmark values in the default bookmark file
M-x bookmark-delete <RET> bookmark <RET>
... delete the bookmark named 'bookmark'
C-x 0
... delete window
C-x 1
... delete all other windows but this one
C-x 2
... split window vertically
C-x 3
... split window horizontally
C-x o
... move to the other window
C-x }
... makes the window wider (‘enlarge-window-horizontally’)
C-x {
... makes the window narrower (‘shrink-window-horizontally’)
C-M-a
... move to beginning of current or preceding defun (beginning-of-defun)
C-M-e
... move to end of current or following defun (end-of-defun)
C-M-h
... put region around whole current or following defun (mark-defun).
C-c C-z
... python-shell-switch-to-shell
C-x d
... enters dired mode
+
... opens prompt for creating a new directory
d / u
... flags file for deletion / removes deletion flag
% d regexp RET
... flags for deletion all files that match regexp
x
... deletes flagged files
* m or m
... marks current line or region
* u or u
... removes any mark on the current line or region
* N
... reports number and size of the marked files
* *, * @, * /, * s
... marks all executable files, all symlinks, all directories, all files (without . and ..) respectively
U
... removes all marks
* t
... toggles all marks
% m regexp RET or * % regexp RET
... marks all lines that match regexp
C-x C-q
... toggles read only
C-x C-s
... saves the changes
2026-05-21 07:35:55
minicms - © 2020-2026 Simeon Simeonov