From: Miguel Guedes <miguel.a.guedes@gmail.com>
To: emacs-devel@gnu.org
Subject: Feature request: other-previous-window
Date: Tue, 20 Nov 2012 15:17:54 +0000 [thread overview]
Message-ID: <50AB9F22.4060200@gmail.com> (raw)
This is a request proposal for a very simple feature: the twin brother
of other-window.
I often keep multiple windows open in my always maximized Emacs frame,
rarely ever less than 2 and usually 3 windows tiled vertically. Having
an inverse to other-window would be a blessing as I often need to jump
from a window in one extreme to the other (skip the window in the
middle.) When moving forwards (other-window), this is not a problem.
However, sometimes I find myself at the leftmost window in need of
moving to the rightmost window.
In other words, if in a given instance of Emacs there are windows A B C,
being able to quickly and effortlessly jump from A to C would be great.
Being a complete newbie to ELISP I don't know if the following code is
up to ELISP standards practiced by the Emacs devs but I suppose it is a
starting point at least:
(defun other-previous-window (count &optional all-frames)
(interactive "p")
(other-window (* count -1) all-frames))
(define-key ctl-x-map "p" 'other-previous-window)
--
Miguel
next reply other threads:[~2012-11-20 15:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-20 15:17 Miguel Guedes [this message]
2012-11-20 15:26 ` Feature request: other-previous-window Davis Herring
2012-11-20 15:44 ` Miguel Guedes
2012-11-21 3:55 ` Kyle C. Andrews
2012-11-21 4:28 ` Stephen J. Turnbull
2012-11-20 18:24 ` Stefan Monnier
2012-11-20 19:10 ` Miguel Guedes
2012-11-20 19:31 ` Lennart Borgman
2012-11-20 20:21 ` Stefan Monnier
2012-11-20 21:20 ` Juanma Barranquero
2012-11-21 9:15 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50AB9F22.4060200@gmail.com \
--to=miguel.a.guedes@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).