|
1 |
| -;;; resize-window.el --- easily resize windows -*- lexical-binding: t; -*- |
| 1 | +;;; resize-window.el --- Easily resize windows -*- lexical-binding: t; -*- |
2 | 2 |
|
3 | 3 | ;; Copyright (C) 2015 Free Software Foundation, Inc.
|
4 | 4 |
|
|
28 | 28 | ;; Easily allows you to resize windows. Rather than guessing that you
|
29 | 29 | ;; want `C-u 17 C-x {`, you could just press FFff, which resizes 5
|
30 | 30 | ;; 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 |
32 | 32 | ;; windows allows for super simple resizing of windows. All of this is
|
33 | 33 | ;; inside of a while loop so that you don't have to invoke more chords
|
34 | 34 | ;; to resize again, but just keep using standard motions until you are
|
35 | 35 | ;; happy.
|
36 | 36 |
|
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, |
38 | 38 | ;; and they mimic the normal motions in emacs.
|
39 | 39 |
|
40 | 40 | ;; n : Resize the window vertically like scrolling down.
|
|
45 | 45 | ;; F for 5 lines at once.
|
46 | 46 | ;; b : Resize the window horizontally like scrolling backward.
|
47 | 47 | ;; 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. |
58 | 58 |
|
59 | 59 |
|
60 | 60 | ;;; Code:
|
@@ -129,20 +129,20 @@ should return the fine adjustment (default 1)."
|
129 | 129 | resize-window-coarse-argument))
|
130 | 130 |
|
131 | 131 | (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)) |
146 | 146 | "List of resize mode bindings.
|
147 | 147 | Main data structure of the dispatcher with the form:
|
148 | 148 | \(key function documentation allows-capitals\)")
|
|
0 commit comments