From 991640e7a638759e3de89073e32e0e6852c833ba Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Wed, 24 Jul 2019 08:32:28 +0200 Subject: [PATCH] Use winner to restore window configurations with C-z --- modules/emacs.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/emacs.el b/modules/emacs.el index b95e82c..ac8d44e 100644 --- a/modules/emacs.el +++ b/modules/emacs.el @@ -40,6 +40,7 @@ volatile-highlights which-key whole-line-or-region + winner ws-butler) ) @@ -639,6 +640,14 @@ :config (volatile-highlights-mode t)) + ;; -------------------------------------------------------------------------- + ;; `winner' - undo/redo window configuration. + ;; -------------------------------------------------------------------------- + + (use-package winner + :init (winner-mode 1) + :bind (("C-z" . winner-undo))) + ;; -------------------------------------------------------------------------- ;; `which-key' ;; --------------------------------------------------------------------------