Skip to content

Commit 2736495

Browse files
author
Dan Sutton
committed
Update commentary of code
1 parent 14ebe72 commit 2736495

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

resize-window.el

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,27 @@
3434
;; to resize again, but just keep using standard motions until you are
3535
;; happy.
3636

37-
;; All of the work is done inside of resize-window. Its just a while
38-
;; loop that keeps looping over character input until it doesn't
39-
;; recognize an option or an allowable capital. The dispatch alist has
40-
;; a character code to look for, a function to invoke, a string for
41-
;; display and whether to match against capital letters. If so, it is
42-
;; invoked with the default capital argument rather than the default
43-
;; argument.
37+
;; But, just run `M-x resize-window`. There are only a few commands to learn,
38+
;; and they mimic the normal motions in emacs.
39+
40+
;; n : Makes the window vertically bigger, think scrolling down. Use
41+
;; N to enlarge 5 lines at once.
42+
;; p : Makes the window vertically smaller, again, like scrolling. Use
43+
;; P to shrink 5 lines at once.
44+
;; f : Makes the window horizontally bigger, like scrolling forward;
45+
;; F for five lines at once.
46+
;; b : window horizontally smaller, B for five lines at once.
47+
;; r : reset window layout to standard
48+
;; w : cycle through windows so that you can adjust other window
49+
;; panes. W cycles in the opposite direction.
50+
;; 2 : create a new horizontal split
51+
;; 3 : create a new vertical split
52+
;; 0 : delete the current window
53+
;; k : kill all buffers and put window config on the stack
54+
;; y : make the window configuration according to the last config
55+
;; pushed onto the stack
56+
;; ? : Display menu listing commands
57+
4458

4559
;;; Code:
4660

0 commit comments

Comments
 (0)