emacs sorcery

December 1, 2016

I’ll likely update this as time goes on. Emacs is incredible and I’m just beginning to branch into its extended functionality.

Query Replace

Mark a region to alter. Choose one of the following.

M-% string RET newstring RET

or

C-M-% regexp RET newstring RET

Search current string under cursor

C-s C-w

Note: further C-w will expand to additional strings, C-s to move through selections.

Quick display all matching lines

M-s o

String Rectangle

C-x r t string-rectangle

Create a rectangle of an area and replace the content with content you type.