From faaae8da20fcc8960621009c0884034992ad11a7 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sat, 27 Jun 2020 12:59:22 +0100 Subject: [PATCH] dot/emacs: Turn on `winner-mode' to keep track of window configuration. Organization: Straylight/Edgeware From: Mark Wooding --- dot/emacs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dot/emacs b/dot/emacs index fa934aa..ff4843f 100644 --- a/dot/emacs +++ b/dot/emacs @@ -177,6 +177,11 @@ (setq calc-settings-file "~/.emacs-calc") (load calc-settings-file) +;; Saving window-configuration state. + +(or mdw-fast-startup + (winner-mode 1)) + ;; Some mail and news configuration. (setq mail-from-style 'angles @@ -720,6 +725,8 @@ (global-set-key [?\C-c ?w ?j] 'windmove-down) (global-set-key [?\C-c ?w ?k] 'windmove-up) (global-set-key [?\C-c ?w ?l] 'windmove-right) + (global-set-key [?\C-c ?w ?r] 'winner-redo) + (global-set-key [?\C-c ?w ?u] 'winner-undo) (global-set-key [?\C-c ?w ?w] 'mdw-set-frame-width) (global-set-key [?\C-c ?w up] 'windmove-up) (global-set-key [?\C-c ?w down] 'windmove-down) -- [mdw]