chiark / gitweb /
dot/emacs: Turn on `winner-mode' to keep track of window configuration.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 27 Jun 2020 11:59:22 +0000 (12:59 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 27 Jun 2020 12:01:09 +0000 (13:01 +0100)
dot/emacs

index fa934aae1dddde1cb8beca1d920b1279a7ea282f..ff4843f67f9c9958f34ad4480180a9560d74fece 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 (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
   (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)