I am trying to bind C-c u
and C-c r
to winner-mode's undo and redo in my ~/.emacs
:
(global-set-key (kbd "C-c u") 'winner-undo)
(global-set-key (kbd "C-c r") 'winner-redo)
However, this doesn't work without (winner-mode 1)
, which sets up some keybindings. And I don't want any of winner-mode's default keybindings. How can I make my winner-undo
and winner-redo
work without binding any other keys, preferably without installing other packages?