[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Alternative to left arrow key in Winner mode
From: |
Michael Heerdegen |
Subject: |
Re: Alternative to left arrow key in Winner mode |
Date: |
Sat, 11 Jul 2015 20:30:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> writes:
> I don't use winner.el, but this should get you started:
>
> (define-key winner-mode-map (kbd "<f5>") 'winner-undo)
Exactly (but bear in mind that you cannot do this before loading
winner.el, so you might want to wrap it inside `with-eval-after-load').
If you want to avoid the default bindings being established,
(setq winner-dont-bind-my-keys t)
in addition.
If you don't care too much (I don't),
(global-set-key (kbd "<f5>") 'winner-undo)
is absolutely fine if you have turned on winner-mode all the time
anyway. You don't need `with-eval-after-load' in this case.
Michael.