all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Angelo Graziosi <angelo.g0@libero.it>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: About tab-line-mode
Date: Tue, 01 Feb 2022 21:43:28 +0200	[thread overview]
Message-ID: <86iltymkyn.fsf@mail.linkov.net> (raw)
In-Reply-To: <323069587.276853.1643675461558@mail1.libero.it> (Angelo Graziosi's message of "Tue, 1 Feb 2022 01:31:01 +0100 (CET)")

>> 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.

> I am afraid of all this questions but I'm almost done..

Thanks for the questions.



  reply	other threads:[~2022-02-01 19:43 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 [this message]
2022-02-02 16:12         ` Angelo Graziosi

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=86iltymkyn.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=angelo.g0@libero.it \
    --cc=emacs-devel@gnu.org \
    /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.