[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About tab-line-mode
From: |
Angelo Graziosi |
Subject: |
Re: About tab-line-mode |
Date: |
Wed, 2 Feb 2022 17:12:47 +0100 (CET) |
> Il 01/02/2022 20:43 Juri Linkov ha scritto:
>
>
> >> Thanks for suggestions! I added this to the init file, an it seems to work
> >>
> >> ;; Native buffer tabs setup
> >> (global-tab-line-mode 1)
> >>
> >> (setq tab-line-tabs-function 'tab-line-tabs-buffer-groups)
> >> (setq tab-line-close-tab-function 'kill-buffer)
> >>
> >> (set-face-attribute 'tab-line nil :height 1.0)
> >>
> >> Is that what you had in mind?
>
> Exactly.
>
> > I have a few more questions.
> >
> > a. When I am in a mode with more tabs, selecting one tab it becomes the
> > most left tab, near the mode button. Is there a setting to left the tab at
> > its position? How are the tabs ordered? When I have multiple tabs open in
> > a browser they remain there, don't move to the most left position just
> > because I have selected one of them..
>
> There is a variable for sorting tabs too, so you could set it to e.g.:
>
> (setq tab-line-tabs-buffer-group-sort-function
> (lambda (a b)
> (string< (buffer-name a) (buffer-name b))))
>
> > b. When a buffer is modified and not saved, one expects the tab
> > changes some of its elements, usually a "star" shows up or the buffer
> > name change color. Is there a setting to have this?
>
> There is a setting for this as well. When the list in
> 'tab-line-tab-face-functions' contains the function
> 'tab-line-tab-face-modified' then the modified file buffer is
> highlighted with the face 'tab-line-tab-modified'.
>
> This is enabled by default. But I noticed that this is
> not supported when 'tab-line-tabs-function' is customized to
> 'tab-line-tabs-buffer-groups'. Now this is fixed in master,
> so you can have the cake and eat it too.
Thank you very much! I suspected you had implemented this and for some reason I
di not find it. I have built master and it works as expected!
>
> > I am afraid of all this questions but I'm almost done..
>
> Thanks for the questions.
I think I have finished!
Ciao,
Angelo.