diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/window.el | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lisp/window.el b/lisp/window.el index 44cb682d6dd..512e85dc29a 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -4073,6 +4073,14 @@ nil, which considers all windows on the selected frame." | |||
| 4073 | ;; Always return nil. | 4073 | ;; Always return nil. |
| 4074 | nil)))) | 4074 | nil)))) |
| 4075 | 4075 | ||
| 4076 | (defun other-window-backward (count &optional all-frames interactive) | ||
| 4077 | "Select another window in the reverse cyclic ordering of windows. | ||
| 4078 | COUNT specifies the number of windows to skip, (by default) backward, | ||
| 4079 | starting with the selected window, before making the selection. Like | ||
| 4080 | `other-window', but moves in the opposite direction." | ||
| 4081 | (interactive "p\ni\np") | ||
| 4082 | (other-window (- (or count 1)) all-frames interactive)) | ||
| 4083 | |||
| 4076 | (defun other-window-prefix () | 4084 | (defun other-window-prefix () |
| 4077 | "Display the buffer of the next command in a new window. | 4085 | "Display the buffer of the next command in a new window. |
| 4078 | The next buffer is the buffer displayed by the next command invoked | 4086 | The next buffer is the buffer displayed by the next command invoked |
| @@ -11373,6 +11381,7 @@ found by the provided context." | |||
| 11373 | (define-key ctl-x-map "2" 'split-window-below) | 11381 | (define-key ctl-x-map "2" 'split-window-below) |
| 11374 | (define-key ctl-x-map "3" 'split-window-right) | 11382 | (define-key ctl-x-map "3" 'split-window-right) |
| 11375 | (define-key ctl-x-map "o" 'other-window) | 11383 | (define-key ctl-x-map "o" 'other-window) |
| 11384 | (define-key ctl-x-map "O" 'other-window-backward) | ||
| 11376 | (define-key ctl-x-map "^" 'enlarge-window) | 11385 | (define-key ctl-x-map "^" 'enlarge-window) |
| 11377 | (define-key ctl-x-map "}" 'enlarge-window-horizontally) | 11386 | (define-key ctl-x-map "}" 'enlarge-window-horizontally) |
| 11378 | (define-key ctl-x-map "{" 'shrink-window-horizontally) | 11387 | (define-key ctl-x-map "{" 'shrink-window-horizontally) |
| @@ -11386,10 +11395,7 @@ found by the provided context." | |||
| 11386 | :doc "Keymap to repeat `other-window'. Used in `repeat-mode'." | 11395 | :doc "Keymap to repeat `other-window'. Used in `repeat-mode'." |
| 11387 | :repeat t | 11396 | :repeat t |
| 11388 | "o" #'other-window | 11397 | "o" #'other-window |
| 11389 | "O" (lambda () | 11398 | "O" #'other-window-backward) |
| 11390 | (interactive) | ||
| 11391 | (setq repeat-map 'other-window-repeat-map) | ||
| 11392 | (other-window -1))) | ||
| 11393 | 11399 | ||
| 11394 | (defvar-keymap resize-window-repeat-map | 11400 | (defvar-keymap resize-window-repeat-map |
| 11395 | :doc "Keymap to repeat window resizing commands. | 11401 | :doc "Keymap to repeat window resizing commands. |