I would like to emulate Alt-Tab as it works with individual windows on GTK, but with Ctrl-Tab within buffers in emacs.
So, for example, if I have ten buffers open in emacs, and I am working on two at the moment, say Buffer1 and Buffer2, and I am in Buffer1 currently, I would like Ctrl-Tab to take me to Buffer2, and on pressing Ctrl-Tab again, back to Buffer1.
In case I need to go to Buffer3, or Buffer4 etc, I keep Ctrl pressed while I press Tab.
Does this make sense? If so, please tell me how I can do this.
What are you using currently?
But I think
(global-set-key (kbd "C-<tab>") 'next-buffer)
(global-set-key (kbd "C-S-<tab>") 'previous-buffer)
should be doing what you describe.
As jaybee comments, it may be a whole less useful than in, say, Firefox. But I'd recommend ido-switch-buffer
.
This may also be of interest: http://www.emacswiki.org/emacs/ControlTABbufferCycling
I think swbuff works well. See http://www.emacswiki.org/emacs/SwBuff.
From my init file:
(require 'swbuff)
(global-set-key [(control tab)] 'swbuff-switch-to-next-buffer)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With