Skip to content

Commit e6f3d30

Browse files
committed
Reorganize the list of commands
1 parent c3b7fca commit e6f3d30

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

resize-window.el

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; resize-window.el --- easily resize windows -*- lexical-binding: t; -*-
1+
;;; resize-window.el --- Easily resize windows -*- lexical-binding: t; -*-
22

33
;; Copyright (C) 2015 Free Software Foundation, Inc.
44

@@ -28,13 +28,13 @@
2828
;; Easily allows you to resize windows. Rather than guessing that you
2929
;; want `C-u 17 C-x {`, you could just press FFff, which resizes 5
3030
;; lines, then 5 lines, then one and then one. The idea is that the
31-
;; normal motions n,p,f,b along with r for reset and w for cycling
31+
;; normal motions n,p,f,b along with e for even and w for cycling
3232
;; windows allows for super simple resizing of windows. All of this is
3333
;; inside of a while loop so that you don't have to invoke more chords
3434
;; to resize again, but just keep using standard motions until you are
3535
;; happy.
3636

37-
;; But, just run `M-x resize-window`. There are only a few commands to learn,
37+
;; Just run `M-x resize-window`. There are only a few commands to learn,
3838
;; and they mimic the normal motions in emacs.
3939

4040
;; n : Resize the window vertically like scrolling down.
@@ -45,16 +45,16 @@
4545
;; F for 5 lines at once.
4646
;; b : Resize the window horizontally like scrolling backward.
4747
;; B for 5 lines at once.
48-
;; r : reset window layout to standard
49-
;; w : cycle through windows so that you can adjust other window
50-
;; panes. W cycles in the opposite direction.
51-
;; 2 : create a new horizontal split
52-
;; 3 : create a new vertical split
53-
;; 0 : delete the current window
54-
;; k : kill all buffers and put window config on the stack
55-
;; y : make the window configuration according to the last config
56-
;; pushed onto the stack
57-
;; ? : Display menu listing commands
48+
;; w : Cycle through windows so that you can adjust other window panes.
49+
;; W cycle in the opposite direction.
50+
;; e : Even the size of the windows.
51+
;; 2 : Split the window horizontally.
52+
;; 3 : Split the window vertically.
53+
;; 0 : Delete the current window.
54+
;; k : Delete other windows and save the state on the stack.
55+
;; s : Save the state on the stack so you may restore it later.
56+
;; r : Restore to a previous saved state.
57+
;; ? : Display the help menu listing commands.
5858

5959

6060
;;; Code:
@@ -129,20 +129,20 @@ should return the fine adjustment (default 1)."
129129
resize-window-coarse-argument))
130130

131131
(defvar resize-window-dispatch-alist
132-
'((?n resize-window--resize-downward " Resize - downward" t)
133-
(?p resize-window--resize-upward " Resize - upward" t)
134-
(?f resize-window--resize-forward " Resize - forward" t)
135-
(?b resize-window--resize-backward " Resize - backward" t)
136-
(?r resize-window--reset-windows " Resize - reset window layout (save state)" nil)
137-
(?w resize-window--cycle-window-positive " Resize - cycle window" nil)
138-
(?W resize-window--cycle-window-negative " Resize - cycle window" nil)
139-
(?2 resize-window--split-window-below " Split window horizontally (save state)" nil)
140-
(?3 resize-window--split-window-right " Slit window vertically (save state)" nil)
141-
(?0 resize-window--delete-window " Delete window (save state)" nil)
142-
(?k resize-window--kill-other-windows " Kill other windows (save state)" nil)
143-
(?s resize-window--window-push " Save state" nil)
144-
(?y resize-window--restore-windows " (when state) Restore window configuration" nil)
145-
(?? resize-window--display-menu " Resize - toggle help menu" nil))
132+
'((?n resize-window--resize-downward "Resize downward" t)
133+
(?p resize-window--resize-upward "Resize upward" t)
134+
(?f resize-window--resize-forward "Resize forward" t)
135+
(?b resize-window--resize-backward "Resize backward" t)
136+
(?w resize-window--cycle-window-positive "Next window" nil)
137+
(?W resize-window--cycle-window-negative "Previous window" nil)
138+
(?e resize-window--reset-windows "Even layout (save state)" nil)
139+
(?2 resize-window--split-window-below "Split below (save state)" nil)
140+
(?3 resize-window--split-window-right "Split right (save state)" nil)
141+
(?0 resize-window--delete-window "Delete window (save state)" nil)
142+
(?k resize-window--kill-other-windows "Delete other windows (save state)" nil)
143+
(?s resize-window--window-push "Save state" nil)
144+
(?r resize-window--restore-windows "Restore state" nil)
145+
(?? resize-window--display-menu "Toggle help menu" nil))
146146
"List of resize mode bindings.
147147
Main data structure of the dispatcher with the form:
148148
\(key function documentation allows-capitals\)")

0 commit comments

Comments
 (0)