aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-04-29 22:28:02 +0200
committerLars Ingebrigtsen2016-04-29 22:28:02 +0200
commit2c3ab9b6e39a3d600e7d82deacc24effaec051bb (patch)
tree0b9fd2b1fe39c4df24230847a0605df5e71d948d
parent340a224ec3e01706112a07164da9a9f3f369a5aa (diff)
downloademacs-2c3ab9b6e39a3d600e7d82deacc24effaec051bb.tar.gz
emacs-2c3ab9b6e39a3d600e7d82deacc24effaec051bb.zip
Add a doc string to `winner-mode'
* lisp/winner.el (winner-mode): Add a doc string based on the comments in the file (bug#17716).
-rw-r--r--lisp/winner.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/winner.el b/lisp/winner.el
index 4b277008d78..9a6f5d5190b 100644
--- a/lisp/winner.el
+++ b/lisp/winner.el
@@ -346,7 +346,19 @@ You may want to include buffer names such as *Help*, *Apropos*,
346 346
347 347
348;;;###autoload 348;;;###autoload
349(define-minor-mode winner-mode nil :global t ; let d-m-m make the doc 349(define-minor-mode winner-mode
350 "Toggle Winner mode on or off.
351With a prefix argument ARG, enable Winner mode if ARG is
352positive, and disable it otherwise. If called from Lisp, enable
353the mode if ARG is omitted or nil, and toggle it if ARG is ‘toggle’.
354
355Winner mode is a global minor mode that records the changes in
356the window configuration (i.e. how the frames are partitioned
357into windows) so that the changes can be \"undone\" using the
358command `winner-undo'. By default this one is bound to the key
359sequence `C-c <left>'. If you change your mind (while undoing),
360you can press `C-c <right>' (calling `winner-redo')."
361 :global t
350 (if winner-mode 362 (if winner-mode
351 (progn 363 (progn
352 (add-hook 'window-configuration-change-hook 'winner-change-fun) 364 (add-hook 'window-configuration-change-hook 'winner-change-fun)