Simple Emacs keybindings
Posted
by User1
on Stack Overflow
See other posts from Stack Overflow
or by User1
Published on 2010-05-27T15:16:42Z
Indexed on
2010/05/27
17:51 UTC
Read the original article
Hit count: 252
I have two operations that I do all the time in Emacs:
- Create a new buffer and paste the clipboard. [C-S-n]
- Close the current buffer. [C-S-w]
- Switch to the last viewed buffer [C-TAB]
I feel like a keyboard acrobat when doing the first two operations. I think it would be worth trying some custom keybindings and macros.
A few questions about this customization:
- How would I make a macro for #1?
- Are these good keybindings (i know this is a bit subjective, but they might be used by something popular that I don't use)
- Has anyone found a Ctrl-Tab macro that will act like Alt-Tab in Linux/Windows? Specifically, I want it have a stack of buffers according to the last viewed timestamp (most recent on top). I want to continue cycling through the stack until I let go of the ctrl key. When the ctrl key is released, I want the current buffer to get an updated position on the stack.
© Stack Overflow or respective owner