Scrolling Left and Right

Hideo tweeted out a link

to this nice configuration by Shanthakumar. It’s a blog post written in Org mode that can be tangled to his init.el. It has some good ideas and is worth taking a look at.

One of the things in the configuration is a standard Emacs binding that I didn’t know about. You can scroll a window left or right with Ctrl+x < and Ctrl+x >. If you’re like me, you don’t often need to do that but I have one use case that comes up often: when I paste in the code for an embedded Tweet (like the above) it’s a long line. Sometimes I want to look at something in the middle of that line. I’ve been doing that by moving forward by word to get to the point I want to see. Moving by window length is much more efficient.

One thing to be wary of is that moving the screen left moves toward the right side of the screen—you’re moving the window not the cursor. Similarly for moving the screen right. I don’t know why I didn’t already know this but I’m glad to learn it.

This entry was posted in General and tagged . Bookmark the permalink.