[Top][All Lists]

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

Re: Help customising the behaviour of the new Tab Line mode

From: Juri Linkov
Subject: Re: Help customising the behaviour of the new Tab Line mode
Date: Wed, 19 Aug 2020 04:28:58 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

> That with the .h and .cpp files was just an example. When I work on a base
> class and a derived class, I keep the base class to the left and the
> derived class to the right. If I am working on an HTML page, I keep the CSS
> file to the left, so that I can switch quickly between them. And so forth.

It should not be too hard to write another function for `tab-line-tabs-function'
that will keep the manually sorted list of buffers, and a new command with a 
`tab-line-move-tab' that will move the current tab in the internally maintained
sorted buffer list used to display tabs on the tab-line.

Then the remaining question is where would you prefer a new buffer to appear?
When you visit a new buffer, it should be added to such list of buffers.
One possible place is to put the new buffer to the end of the list, 
but then wouldn't it too inconvenient for you to move its tab from the end
of the list to a more appropriate place where you want it to be?

reply via email to

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