unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Feature request: other-previous-window
@ 2012-11-20 15:17 Miguel Guedes
  2012-11-20 15:26 ` Davis Herring
  2012-11-20 18:24 ` Stefan Monnier
  0 siblings, 2 replies; 11+ messages in thread
From: Miguel Guedes @ 2012-11-20 15:17 UTC (permalink / raw)
  To: emacs-devel

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



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

end of thread, other threads:[~2012-11-21  9:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-20 15:17 Feature request: other-previous-window Miguel Guedes
2012-11-20 15:26 ` 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

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).