Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 3
    ...or simply bind next/previous buffer to C-, and C-. to gain repeatability, and while you're on it anyway, set C-x. and C-x, to other-window and (lambda()(interactive)(other-window -1)). Cycling windows probably needs repeatability less, and you get away in a minute, without extra packages. Commented Jul 4, 2015 at 9:41
  • 2
    @AndreasSpindler: You can of course put any command on a repeatable key and thus make it repeatable. That's not the point. Repeatable keys are few, and unbound ones are getting rarer. This is about how to make a command repeatable when it is on a prefix key. Commented Jul 4, 2015 at 18:27
  • 1
    I unterstood your post, but referred more or less to the topic of this thread "How do I switch buffers quickly?". For this purpose I found your tip to use next-buffer and previous-buffer the best solution, independently from any specific key binding. Therefore my comment. Commented Jul 4, 2015 at 19:47
  • @AndreasSpindler: Got it; thx. Commented Jul 4, 2015 at 20:33
  • This is great, I many times need repeatable commands even when they have prefix keys. That said, I found prev/next buffer defaults to C-x C-left and C-x C-right which allows you to old C, and just repeat pressing x-left and x-right. Which is not too bad as default. Commented Nov 5, 2018 at 6:25