Cycling among Emacs buffers using Ctrl + TAB or mouse navigation buttons

hamen's picture

Hi,
I'm used to navigate Firefox tabs using Ctrl + TAB or mouse buttons. It's just a "die hard" habit. Emacs is awesome and you can easly customize it to provide this feature. Just edit your emacs config file:

hamen@sanniolug:~$ emacs .emacs

Append this line:

(global-set-key [(control tab)] 'crs-bury-buffer)


Reload .emacs or just restart emacs and you will navigate bufffers with Ctrl + TAB. If you already have a working "tons of buttons" mouse, you can identify nav buttons simply pressing them in emacs. Emacs will report, for instance, an errore like this:

mouse-8 is undefined


As above, just append this lines to your .emacs file:

(global-set-key [(mouse-8)] 'crs-bury-buffer)
(global-set-key [(mouse-9)] (lambda () (interactive) (crs-bury-buffer -1)))


You can use mouse buttons and Ctrl + TAB to navigate Emacs buffers ;)
hamen

Comments

ky4n63l's picture

Useful tip!

Thx hamen! ^_^
I was a little bit tired of `C^x+arrow keys`...I'm going to edit my .emacs right now!
Now I can increase my buffer's number and navigate among them more easily;-D

C- ya -soon! @8-)
kyangel

ky4n63l's picture

...Debian issue?...

In my emacs v22.2.1 installed on Debian 5.0.3 (lenny) i have to edit this string
`crs-bury-buffer`
in
`bury-buffer`

if not, C^TAB doesn't work and an error message appears in emacs.

Maybe this issue it's only for Debian's users...

CiauZ
kyangel

Post new comment

The content of this field is kept private and will not be shown publicly.