Skip to content

Commit a4790d2

Browse files
committed
Save state command
Update: - readme.md
1 parent bd8384c commit a4790d2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ panes. `W` cycles in the opposite direction.
4444
- `3`: create a new vertical split
4545
- `0`: delete the current window
4646
- `k`: kill all buffers and put window config on the stack
47+
- `s`: Save the state on the stack so you may restore it later.
4748
- `y`: make the window configuration according to the last config
4849
pushed onto the stack
4950
- `?`: Display menu listing commands

resize-window.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
;; 3 : create a new vertical split
5353
;; 0 : delete the current window
5454
;; k : kill all buffers and put window config on the stack
55+
;; s : Save the state on the stack so you may restore it later.
5556
;; y : make the window configuration according to the last config
5657
;; pushed onto the stack
5758
;; ? : Display menu listing commands
@@ -146,6 +147,7 @@ should return the fine adjustment (default 1)."
146147
(?3 resize-window--split-window-right " Slit window vertically (save state)" nil)
147148
(?0 resize-window--delete-window " Delete window (save state)" nil)
148149
(?k resize-window--kill-other-windows " Kill other windows (save state)" nil)
150+
(?s resize-window--window-push " Save state" nil)
149151
(?y resize-window--restore-windows " (when state) Restore window configuration" nil)
150152
(?? resize-window--display-menu " Resize - toggle help menu" nil))
151153
"List of resize mode bindings.

0 commit comments

Comments
 (0)