unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#64868: 29.1; C-x O binding suggestion for (other-window -1)
@ 2023-07-26  6:46 Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-07-26 11:15 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-07-26  6:46 UTC (permalink / raw)
  To: 64868


When there are three or more windows in a frame C-x o runs the command
other-window.  Wanting to goto the previous window the keybinding for
that is not obvious.  C-x p is a keymap prefix for project related work.

May I suggest to make possible the binding C-x O for (other-window -1)
as follows

(global-set-key 
 (kbd "C-x O") 
 #'(lambda ()
     "Previous window."
     (interactive)
     (other-window -1)))

Use case to demonstrate idea suggested

 1. run, emacs -Q -nw --color=no
 2. create three windows in one frame
 3. when wanting to goto the prev window, C-x o runs the command other-window that goes the long way around
 4. C-x O that runs the command (other-window -1) improves the life quality experience

The *Messages* buffer says

 C-x o (translated from C-x O) runs the command other-window

Similarly if C-j behaves like C-m in the dired buffer to run the command dired-find-file that feels better.





^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-08-03  2:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26  6:46 bug#64868: 29.1; C-x O binding suggestion for (other-window -1) Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-26 11:15 ` Eli Zaretskii
2023-07-26 13:19   ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-26 13:47     ` Eli Zaretskii
2023-08-02 13:07       ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-02 14:26         ` Drew Adams
2023-08-02 16:25           ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-02 16:45             ` Drew Adams
2023-08-03  2:42               ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-02 14:28         ` Eli Zaretskii
2023-08-02 16:45           ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-02 17:01             ` Eli Zaretskii
2023-07-26 14:37 ` Drew Adams
2023-08-02 21:00 ` Jim Porter

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).