TIL: Move current line to center, top, or bottom of window

For a long time now I have known that the GNU Emacs chord C-l centers the current line on the window. This chord in bound to the elisp function recenter-top-bottom, which I happen to have been reading the documentation for today. I learned that if you use C-l in quick succession, it will cycle the placement of the current line at the center, the top, and the bottom of the current window.

I didn't know this and it's a very handy trick that fits really well with the way I use Emacs.

Comments

Comments powered by Disqus