help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to toggle to buffer previously selected ?


From: Lennart Borgman (gmail)
Subject: Re: How to toggle to buffer previously selected ?
Date: Thu, 07 Feb 2008 16:58:24 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Francis Moreau wrote:
On Feb 7, 2008 11:53 AM, Tassilo Horn <address@hidden> wrote:
"Francis Moreau" <address@hidden> writes:

Hi Francis,

I know 'C-x o' to select the next selected buffer but I'd like to
toggle between 2 buffers even if more than 2 buffers are displayed.
I use this:

(defun th-other-buffer ()
  (interactive)
  (switch-to-buffer (other-buffer)))

(global-set-key (kbd "C-?") 'th-other-buffer)


This is not what I want to do. Sorry I wasn't clear enough in my previous email.

OK, let's say I have the following setup in my emacs:

+-------+--------+
|           |           |
|   1      |   2      |
|           |           |
+-------+--------+
|           |           |
|   3      |   4      |
|           |           |
+-------+--------+

Currently buffer "2" is selected.

I now select buffer "3". I did some typing in that buffer now I want
to get back quickly to buffer "2". I don't want to do "\C-x\C-o" but
I'd like for example just to do "\C-TAB".

So I can go back and forth between these 2 buffers just by typing "\C-TAB"

Thanks

windmove




reply via email to

[Prev in Thread] Current Thread [Next in Thread]