From: Angelo Graziosi <angelo.g0@libero.it>
To: Juri Linkov <juri@linkov.net>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: About tab-line-mode
Date: Wed, 2 Feb 2022 17:12:47 +0100 (CET) [thread overview]
Message-ID: <1850745879.491353.1643818367013@mail1.libero.it> (raw)
In-Reply-To: <86iltymkyn.fsf@mail.linkov.net>
> 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.
prev parent reply other threads:[~2022-02-02 16:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-31 19:33 About tab-line-mode Angelo Graziosi
2022-01-31 20:30 ` Juri Linkov
2022-01-31 22:03 ` Angelo Graziosi
2022-02-01 0:31 ` Angelo Graziosi
2022-02-01 19:43 ` Juri Linkov
2022-02-02 16:12 ` Angelo Graziosi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1850745879.491353.1643818367013@mail1.libero.it \
--to=angelo.g0@libero.it \
--cc=emacs-devel@gnu.org \
--cc=juri@linkov.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.