RSS | Source | License

Useful Builtin Bindings in Emacs

M-r In comint buffer, search for previous input 1
M-g M-g Go to line number.
M-= Count words in region: word count, char count, etc 2
M-. & M-, Xref shortcuts, jump to definition and jump back.
M-/ dabbrev-expand. You can rebind it to hippie-expand.
M-y yank-pop. counsel-yank-pop is more useful.
M-u & M-l Up-case / down-case next word, very handy.
M-c Capitalize next word.
C-; If you enabled flyspell, this fixes the previous misspelling.
C-q Insert characters verbatim, even control characters.
C-x 5 2 Create new frame.
C-x ( & C-x ) Start/stop recording keyboard macro.
C-x e Execute last keyboard macro.
C-x = Describe character at point. Add C-u for more detail.
M-: Evaluate expression.
C-x C-e Evaluate last sexp before point.
C-M-f & C-M-b Forward / backward sexp.
(C-u) C-x = Print information of the character at point.
C-x 4 a Generate change log.
M-h Select defun / paragraph.
C-x h Select whole buffer.
C-h h Shows the hello file.


list-character-sets Shows all unicode character sets.
display-fill-column-indicator-mode Shows a line at 80 column.
undo-redo Finally a redo in Emacs.
which-function-mode Shows which function you are in.



Hit M-r to start the search. Then hit C-s for next match (instead of M-r). I don’t know this at first and couldn’t understand why M-r doesn’t work.


Or M-x count-words, which is easier to remember.

Written by Yuan Fu

First Published on 2020-02-06 Thu 16:58

Last modified on 2020-09-12 Sat 16:10

Send your comment to archive.casouri.cat@gmail.com