Emacs: yank a line multiple times from the kill ring

Yanking a some text from the kill ring multiple times

Today I needed to copy a line multiple times in emacs. I needed 8 copies, but how to do that in emacs short of pressing C-y to yank 8 times? My initial guess was to try C-u 8 C-y but that yanks the 8th item from the kill ring. Fuco on #emacs supplied the awesome… Continue reading Emacs: yank a line multiple times from the kill ring

emacs keyboard macros

If you haven’t explored the power of keyboard macros in emacs, you should. You only need to remember a few keys to get going: <F3> Start recording a macro <F4> End recording a macro C-x e to repeat the macro Give it a go!

Insert a new heading after numbered list in org-mode

In org-mode in emacs, M-<RET> will add either a new heading or if your insertion point is between a list item and a heading, it will add a new list item. This is not always desirable. To add a new heading try C-U M-<RET>. I only discovered this as I got frustrated with org-mode insisting… Continue reading Insert a new heading after numbered list in org-mode