Next: Versioning Notes, Up: Ecosystem [Contents]
winner-mode
is a global minor mode that allows one to undo and redo changes in the window configuration. It is included with GNU Emacs since version 20.
winner-mode
can be used as a simple version of browser history for Org-roam. Each click through org-roam links (from both Org files and the backlinks buffer) causes changes in window configuration, which can be undone and redone using winner-mode
. To use winner-mode
, simply enable it, and bind the appropriate interactive functions:
(winner-mode +1) (define-key winner-mode-map (kbd "<M-left>") #'winner-undo) (define-key winner-mode-map (kbd "<M-right>") #'winner-redo)