diff options
| author | Juri Linkov | 2021-03-14 11:29:31 +0200 |
|---|---|---|
| committer | Juri Linkov | 2021-03-14 11:29:31 +0200 |
| commit | f9b737fb9d21ac7adff403274167e76e77d033b8 (patch) | |
| tree | 98b6a2af59fad4e3ea1a363fafdc138e55d65a81 /etc | |
| parent | 0a60e5d33c82803d68970c71a2e9ac9fcde5c2c6 (diff) | |
| download | emacs-f9b737fb9d21ac7adff403274167e76e77d033b8.tar.gz emacs-f9b737fb9d21ac7adff403274167e76e77d033b8.zip | |
* lisp/tab-bar.el: Tab groups can be displayed with tab-bar-format-tabs-groups
* lisp/tab-bar.el (tab-bar-format): Turn defvar into defcustom.
Add :options and force-mode-line-update in :set.
(tab-bar--format-tab): New function refactored from tab-bar-format-tabs.
(tab-bar-format-tabs): Move most of code to tab-bar--format-tab and call it.
(tab-bar-tab-group-format-function): New defcustom.
(tab-bar-tab-group-format-default): New function.
(tab-bar--format-tab-group, tab-bar-format-tabs-groups): New functions.
(tab-bar-format-align-right, tab-bar-format-global): Shorten id.
(tab-bar-change-tab-group): Add refs to tab-bar-format in docstring.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -519,11 +519,13 @@ It can be used to enable/disable the tab bar individually on each frame | |||
| 519 | independently from the value of 'tab-bar-mode' and 'tab-bar-show'. | 519 | independently from the value of 'tab-bar-mode' and 'tab-bar-show'. |
| 520 | 520 | ||
| 521 | --- | 521 | --- |
| 522 | *** New variable 'tab-bar-format' defines a list of tab bar items. | 522 | *** New option 'tab-bar-format' defines a list of tab bar items. |
| 523 | When it contains 'tab-bar-format-global' (possibly appended after | 523 | When it contains 'tab-bar-format-global' (possibly appended after |
| 524 | 'tab-bar-format-align-right'), then after enabling 'display-time-mode' | 524 | 'tab-bar-format-align-right'), then after enabling 'display-time-mode' |
| 525 | (or any other mode that uses 'global-mode-string') it displays time | 525 | (or any other mode that uses 'global-mode-string') it displays time |
| 526 | aligned to the right on the tab bar instead of the mode line. | 526 | aligned to the right on the tab bar instead of the mode line. |
| 527 | When 'tab-bar-format-tabs' is replaced with 'tab-bar-format-tabs-groups', | ||
| 528 | then the tab bar displays tab groups. | ||
| 527 | 529 | ||
| 528 | --- | 530 | --- |
| 529 | *** 'Mod-9' bound to 'tab-last' now switches to the last tab. | 531 | *** 'Mod-9' bound to 'tab-last' now switches to the last tab. |