From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: About tab-line-mode Date: Tue, 1 Feb 2022 01:31:01 +0100 (CET) Message-ID: <323069587.276853.1643675461558@mail1.libero.it> References: <1528298012.261598.1643657612891@mail1.libero.it> <86a6fbk5qs.fsf@mail.linkov.net> <427812869.274300.1643666622835@mail1.libero.it> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3458"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 01 01:34:24 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEh7o-0000j0-0t for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Feb 2022 01:34:24 +0100 Original-Received: from localhost ([::1]:36386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEh7m-0002MJ-3m for ged-emacs-devel@m.gmane-mx.org; Mon, 31 Jan 2022 19:34:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEh4g-0001M4-Ko for emacs-devel@gnu.org; Mon, 31 Jan 2022 19:31:11 -0500 Original-Received: from smtp-16-i2.italiaonline.it ([213.209.12.16]:41917 helo=libero.it) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEh4c-0007lo-Pj for emacs-devel@gnu.org; Mon, 31 Jan 2022 19:31:09 -0500 Original-Received: from oxapps-14-080.iol.local ([10.101.8.90]) by smtp-16.iol.local with ESMTPA id Eh4XnG6LoCeIHEh4XnVj51; Tue, 01 Feb 2022 01:31:01 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1643675461; bh=sMsHoS0eK9NtJotcpX/y+O8EQmNIAsPJd0UVB0w6aUU=; h=From; b=JrpwK7YeMFKikdbPrRxJMzT0IP5defkezh+I9DU/MV6+ap6B4RLiCHnW9ir3PJz59 wpTpYaHKrv8Bfyu3klXR4s7+UP13Cw2p+aKO1FIymMzkhxP0VPisa6rYpN0fY9doYo 1tezcDcUTXHfMNkNQMyFwdy16qpAYh1wIq1CEul4afvqK4ef0kTv+fCmv1yadriDtb 3bPW4BMt7fckydoMsqXaJsSLDQoJr4oxr9vEPi0UWwv/yZl89Qs3ycSNgsK5Er72qn TudPOvYwBAFIrMlSXfJuCuzMyMCmMlMHXWxGcfG6SYwwFbgTR6WDFvk0Cyd7KTjdXk 0uB+9EqTIrwAQ== X-CNFS-Analysis: v=2.4 cv=M/OIlw8s c=1 sm=1 tr=0 ts=61f87f45 cx=a_exe a=OOVL9cV9Sbj0kEPRW8Lb2w==:117 a=4YaOVRgVZ7EA:10 a=IkcTkHD0fZMA:10 a=xkuKoerOH3sA:10 a=P300xSi_Nr7MPmdjIn0A:9 a=QEXdDO2ut3YA:10 In-Reply-To: <427812869.274300.1643666622835@mail1.libero.it> X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.5-Rev34 X-Originating-IP: 87.11.64.254 X-Originating-Client: open-xchange-appsuite x-libjamsun: soLRX4OQL7/k0s7Npjcj4kn3mh2UoAdd x-libjamv: LR/bMaoSZPk= X-CMAE-Envelope: MS4xfA/xzjVPGTT6zCUAVH9fK+StkM710MFDw8Fd9jdNi0u88DzWTKe00dGr9nQTiwIY1yKT/4BgGOPKDAf0rBk31rMclvm7dw36q6DVLmw6gcRW8Z+Z7wPk 9dJJSy5P/ygZIXLjMBNzawnBT56Dk40OTbl9iK3U91cFLU1m76wqFJc6LnGLtZQdkFQ3kqF8lvPweclKYfgJJC7fjz5QL5rN/Fb3P9XUhf9qGeHQFf005oA7 Received-SPF: pass client-ip=213.209.12.16; envelope-from=angelo.g0@libero.it; helo=libero.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:285705 Archived-At: > Il 31/01/2022 23:03 Angelo Graziosi ha scritto: >=20 > =20 > > Il 31/01/2022 21:30 Juri Linkov ha scritto: > >=20 > > =20 > > > I have a few questions about tab-line-mode. > > > > > > 1. How to group tabs? > > > I want that when I work with a .f90 file the tab line shows all > > > buffers I have visited in that mode and that are open. When I switch > > > to an .sh buffer it should show all buffers in that mode etc.. BUT Ho= w > > > to switch? I do not want a M-x COMMAND but the tab line should show > > > a button (similar to the < > arrows) that when clicked displays the > > > tab line NOT with buffer but with mode: F90, Shell, Latex, C etc.. > > > > > > Maybe all this is already there and I wasn't able to find it.. > >=20 > > Indeed, this is already there. Please try to customize > > =E2=80=98tab-line-tabs-function=E2=80=99 to =E2=80=98tab-line-tabs-buff= er-groups=E2=80=99 > > ("Grouped buffers"). > >=20 > > > 2. How to increase the size of the font with which buffers are displa= yed on the tab line?=20 > > > In my case it is too small (see attachment). How to change the font t= here? In my init.el I have > > > > > > (set-frame-font "JetBrains Mono-11" nil t) > > > > > > (setq default-frame-alist > > > '( > > > [...] > > > (font . "JetBrains Mono-11") ; font > > > )) > > > > > > but it does not help. > >=20 > > Maybe, it would be sufficient for your needs to just customize the face > > =E2=80=98tab-line=E2=80=99 and change its attribute =E2=80=98:height 0.= 9=E2=80=99 to the default height > > =E2=80=98:height 1.0=E2=80=99. > >=20 > > > I have noticed that when I close the tab relative to a buffer, the > > > buffer it is not closed: clicking the '+' on the right of the last > > > tab, the buffer is still there and in the > > > > > > menu Buffer - List All Buffers > > > > > > To avoid this I have to 'Close' the buffer via File menu... > >=20 > > This is possible to customize as well - you can change the value > > of =E2=80=98tab-line-close-tab-function=E2=80=99 from =E2=80=98bury-buf= fer=E2=80=99 to =E2=80=98kill-buffer=E2=80=99. >=20 > Thanks for suggestions! I added this to the init file, an it seems to wor= k >=20 > ;; Native buffer tabs setup > (global-tab-line-mode 1) >=20 > (setq tab-line-tabs-function 'tab-line-tabs-buffer-groups) > (setq tab-line-close-tab-function 'kill-buffer) >=20 > (set-face-attribute 'tab-line nil :height 1.0) >=20 > Is that what you had in mind? >=20 > Thanks.. I have a few more questions. a. When I am in a mode with more tabs, selecting one tab it becomes the mos= t 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 br= owser they remain there, don't move to the most left position just because = I have selected one of them.. b. When a buffer is modified and not saved, one expects the tab changes som= e of its elements, usually a "star" shows up or the buffer name change colo= r. Is there a setting to have this? I am afraid of all this questions but I'm almost done..