From 1b028b2bf6a1d73b1127a7e3384a6d27529bc273 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 1 Jan 2020 23:04:19 -0500 Subject: [PATCH] Set up winner.el keybindings --- emacs/init.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index 49bde08..f347782 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -816,6 +816,14 @@ Emacs has a shell for every mood! (general-def 'normal "M-." #'xref-find-definitions) #+END_SRC +* Winner +Winner is a minor mode that keeps an undo/redo history of the window configuration: +#+BEGIN_SRC emacs-lisp + (winner-mode 1) + (leader-def-key "wn" #'winner-redo) + (leader-def-key "wp" #'winner-undo) +#+END_SRC + * xref After I select an xref reference, I want the xref buffer closed: #+BEGIN_SRC emacs-lisp