From cf148faf3221b8355d07455d7b0c819fd4748d70 Mon Sep 17 00:00:00 2001 From: David Florness Date: Sat, 21 Nov 2020 13:40:42 -0500 Subject: [PATCH] Setup winner-mode with use-package --- lisp/misc.el | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lisp/misc.el b/lisp/misc.el index b4fceef..17547d0 100644 --- a/lisp/misc.el +++ b/lisp/misc.el @@ -5,11 +5,16 @@ (exec-path-from-shell-initialize)) ;; Winner mode: allows for undoing and redoing of windoow configurations -;; C-c : undo -;; C-c : redo -(winner-mode t) -(dolist (m '(motion normal)) - (evil-global-set-key m (kbd "C-w u") #'winner-undo)) +(use-package winner + :straight nil + :bind (:map evil-normal-state-map + ("C-w u" . #'winner-undo) + :map evil-motion-state-map + ("C-w u" . #'winner-undo)) + :init + ;; C-c : undo + ;; C-c : redo + (winner-mode t)) ;; Allow easily switching windows with Shift-{left,right,up,down} (windmove-default-keybindings) -- 2.38.4