diff options
author | Juri Linkov <juri@linkov.net> | 2024-04-17 20:55:45 +0300 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2024-04-17 20:56:10 +0300 |
commit | 230eecf12a688f87354ed2d360a7dfcd7e2dae6a (patch) | |
tree | 69b8d2214771076bf878b03ac3f71af6176dd39b /etc | |
parent | 91333dacfa1b9f1041ceeebb3d46e8e04048c4c9 (diff) | |
download | emacs-230eecf12a688f87354ed2d360a7dfcd7e2dae6a.tar.gz |
New keymap tab-line-mode-map and new tab order on tab-line (bug#69993)
* lisp/tab-line.el (tab-line-new-button-functions): New variable.
(tab-line-tabs-function): Change the default value from
'tab-line-tabs-window-buffers' to the new option
'tab-line-tabs-fixed-window-buffers'.
(tab-line-tabs-buffer-group-sort-function): Change the default
value from nil to 'tab-line-tabs-buffer-group-sort-by-name'.
(tab-line-tabs-buffer-group-sort-by-name): New function.
(tab-line-tabs-fixed-window-buffers): New function.
(tab-line-format-template): Use 'tab-line-new-button-functions'.
(tab-line-mode-map, tab-line-switch-repeat-map): New keymaps.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -371,10 +371,32 @@ but only when 'C-TAB' is not bound globally. You can unbind it if it conflicts with 'C-TAB' in other modes. --- +*** New keymap 'tab-line-mode-map'. +By default it contains keybindings for switching tabs: +'C-x <left>', 'C-x <right>', 'C-x C-<left>', 'C-x C-<right>'. +You can unbind them if you want to use these keys for the +commands 'previous-buffer' and 'next-buffer'. + +--- +*** Default list of tabs is changed to support a fixed order. +This means that the new default tabs function +'tab-line-tabs-fixed-window-buffers' is like the previous +'tab-line-tabs-window-buffers' where both of them show +only buffers that were previously displayed in the window. +But the difference is that the new function always keeps +the original order of buffers on the tab line, even after +switching between these buffers. + +--- *** New user option 'tab-line-tabs-buffer-group-function'. It provides two choices to group tab buffers by major mode and by project name. +--- +*** Now buffers on group tabs are sorted alphabetically. +This will keep the fixed order of tabs, even after +switching between them. + +++ ** New optional argument for modifying directory-local variables. The commands 'add-dir-local-variable', 'delete-dir-local-variable' and |