Winner Undo to Tab Bar History

Now I am using the tab-bar workflow I noticed that winner-mode was not working per tab in that the winner undo would return to the previous state of another tab, pretty annoying! 😕

But there is an easy fix, replace (winner-mode 1) with (tab-bar-history-mode 1)

and for example I replaced my following keybindings:

(global-set-key (kbd "M-u") 'winner-undo)
(global-set-key (kbd "M-i") 'winner-redo)

with

(global-set-key (kbd "M-u") 'tab-bar-history-back)
(global-set-key (kbd "M-i") 'tab-bar-history-forward)

Ironically I had just been reading a related section in Mastering Emacs and this configuration was recommended to avoid confusion and general vexation.

I would also recommend increasing the number of tab bar history elements remembered, the default is 10 and I quickly found myself running out.

Therefore I put in:

(setq tab-bar-history-limit 100)

Comments

comments powered by Disqus