emacs: use built-in command for next-multiframe-window

This commit is contained in:
Protesilaos Stavrou 2024-01-04 12:51:20 +02:00
parent 0bfc63f96c
commit 7d622045d0
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
3 changed files with 2 additions and 18 deletions

View file

@ -102,7 +102,7 @@
;; Commands for paragraphs
"M-Q" #'prot-simple-unfill-region-or-paragraph
;; Commands for windows and pages
"C-x O" #'prot-simple-other-windor-or-frame
"C-x O" #'next-multiframe-window
"C-x n k" #'prot-simple-delete-page-delimiters
"C-x M-r" #'prot-simple-swap-window-buffers
;; Commands for buffers

View file

@ -2478,7 +2478,7 @@ earlier ([[#h:713ede33-3802-40c6-a8e3-7e1fc0d0a924][The =prot-emacs-essentials.e
;; Commands for paragraphs
"M-Q" #'prot-simple-unfill-region-or-paragraph
;; Commands for windows and pages
"C-x O" #'prot-simple-other-windor-or-frame
"C-x O" #'next-multiframe-window
"C-x n k" #'prot-simple-delete-page-delimiters
"C-x M-r" #'prot-simple-swap-window-buffers
;; Commands for buffers
@ -14463,14 +14463,6 @@ Name the buffer after the defun's symbol."
;;;; Commands for buffers
;;;###autoload
(defun prot-simple-other-windor-or-frame ()
"Switch to other window or frame.
If there is only one window, call `other-frame'. Otherwise use
`other-window'."
(interactive)
(call-interactively (if (one-window-p) #'other-frame #'other-window)))
;;;###autoload
(defun prot-simple-kill-buffer (buffer)
"Kill current BUFFER without confirmation.

View file

@ -674,14 +674,6 @@ Name the buffer after the defun's symbol."
;;;; Commands for buffers
;;;###autoload
(defun prot-simple-other-windor-or-frame ()
"Switch to other window or frame.
If there is only one window, call `other-frame'. Otherwise use
`other-window'."
(interactive)
(call-interactively (if (one-window-p) #'other-frame #'other-window)))
;;;###autoload
(defun prot-simple-kill-buffer (buffer)
"Kill current BUFFER without confirmation.