mirror of
https://github.com/protesilaos/dotfiles.git
synced 2026-09-10 07:16:20 -04:00
emacs: define prot-simple-other-window
This commit is contained in:
parent
c5c2068b7b
commit
df9834d8db
|
|
@ -102,6 +102,7 @@
|
|||
;; Commands for paragraphs
|
||||
"M-Q" #'prot-simple-unfill-region-or-paragraph
|
||||
;; Commands for windows and pages
|
||||
"C-x o" #'prot-simple-other-window
|
||||
"C-x n k" #'prot-simple-delete-page-delimiters
|
||||
"C-x M-r" #'prot-simple-swap-window-buffers
|
||||
;; Commands for buffers
|
||||
|
|
|
|||
|
|
@ -2680,6 +2680,7 @@ keys.
|
|||
;; Commands for paragraphs
|
||||
"M-Q" #'prot-simple-unfill-region-or-paragraph
|
||||
;; Commands for windows and pages
|
||||
"C-x o" #'prot-simple-other-window
|
||||
"C-x n k" #'prot-simple-delete-page-delimiters
|
||||
"C-x M-r" #'prot-simple-swap-window-buffers
|
||||
;; Commands for buffers
|
||||
|
|
@ -16580,6 +16581,19 @@ paragraph. The idea is to produce the opposite effect of both
|
|||
|
||||
;;;; Commands for windows and pages
|
||||
|
||||
;;;###autoload
|
||||
(defun prot-simple-other-window ()
|
||||
"Wrapper for `other-window' and `next-multiframe-window'.
|
||||
If there is only one window and multiple frames, call
|
||||
`next-multiframe-window'. Otherwise, call `other-window'."
|
||||
(interactive)
|
||||
(if (and (one-window-p) (length> (frame-list) 1))
|
||||
(progn
|
||||
(call-interactively #'next-multiframe-window)
|
||||
(setq this-command #'next-multiframe-window))
|
||||
(call-interactively #'other-window)
|
||||
(setq this-command #'other-window)))
|
||||
|
||||
;;;###autoload
|
||||
(defun prot-simple-narrow-visible-window ()
|
||||
"Narrow buffer to wisible window area.
|
||||
|
|
|
|||
|
|
@ -587,6 +587,19 @@ paragraph. The idea is to produce the opposite effect of both
|
|||
|
||||
;;;; Commands for windows and pages
|
||||
|
||||
;;;###autoload
|
||||
(defun prot-simple-other-window ()
|
||||
"Wrapper for `other-window' and `next-multiframe-window'.
|
||||
If there is only one window and multiple frames, call
|
||||
`next-multiframe-window'. Otherwise, call `other-window'."
|
||||
(interactive)
|
||||
(if (and (one-window-p) (length> (frame-list) 1))
|
||||
(progn
|
||||
(call-interactively #'next-multiframe-window)
|
||||
(setq this-command #'next-multiframe-window))
|
||||
(call-interactively #'other-window)
|
||||
(setq this-command #'other-window)))
|
||||
|
||||
;;;###autoload
|
||||
(defun prot-simple-narrow-visible-window ()
|
||||
"Narrow buffer to wisible window area.
|
||||
|
|
|
|||
Loading…
Reference in a new issue