From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: cycling through windows Date: Fri, 12 Jul 2013 19:17:58 +0300 Message-ID: <874nbz69c9.fsf@mithlond.arda> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1373645913 13815 80.91.229.3 (12 Jul 2013 16:18:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jul 2013 16:18:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "C. K. Kashyap" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 18:18:33 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uxg3E-00041I-8S for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 18:18:32 +0200 Original-Received: from localhost ([::1]:33802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxg3D-0001kZ-PC for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 12:18:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxg32-0001kT-Tv for help-gnu-emacs@gnu.org; Fri, 12 Jul 2013 12:18:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uxg2w-0001ti-Q8 for help-gnu-emacs@gnu.org; Fri, 12 Jul 2013 12:18:20 -0400 Original-Received: from mta-out.inet.fi ([195.156.147.13]:54130 helo=jenni2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxg2w-0001t2-G9 for help-gnu-emacs@gnu.org; Fri, 12 Jul 2013 12:18:14 -0400 Original-Received: from mithlond.arda (84.251.134.110) by jenni2.inet.fi (8.5.140.03) id 51BB235B02137E2A; Fri, 12 Jul 2013 19:18:06 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.80) (envelope-from ) id 1Uxg2n-0001F6-K6; Fri, 12 Jul 2013 19:18:05 +0300 In-Reply-To: (C. K. Kashyap's message of "Fri, 12 Jul 2013 10:12:02 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 195.156.147.13 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92086 Archived-At: --=-=-= Content-Type: text/plain C. K. Kashyap [2013-07-12 10:12:02 +05:30] wrote: > What is a good way to cycle through windows - looks like C-x o cycles > through in one order and if I need to change the direction I need to > C-u - C-x o But it seems too many keystrokes - is there a better way > (other than doing my own key bindings that is) I use "repeat command" idea which I got from Drew Adams. With that I can cycle with "C-x o o o o o o". That is, just repeating the last component ("o"). (defun tl-repeat-command (command) ;; From Drew Adams. (require 'repeat) (let ((repeat-message-function 'ignore)) (setq last-repeatable-command command) (repeat nil))) (defun tl-other-window (count) (interactive "p") (tl-repeat-command 'other-window)) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJR4Cw3AAoJEHGdadMkU5RQQx0QAIMjX+HZDPSXUFF4XgX0iYUr bCG1O9ycpfPU3/VmwDiEZYZJmo0T/JPJJ370gpC0gY/HND8gyyQqhG1tYdeM813u T3mWG3LuD4LdqgnWWIa1mwFYmu+s2ku/ttcbmdpZWH2sVvvrIZ1QIhbSLlPDISxl cw/rIn99yR4s3Qvk2J+9yis/s59O6nao0STIwvuA098DBMgfEHRx23pY2bnEnjGs rcX7IixQut2UgYGBZjsIb1uorX4QgqKHqbShDc1x0twqhBCXjhHt+CjvpkoD+g4s 1ckv77KZCJLSwFj4uqcl2Jwpqw02O7piDcsOwIokSvnq8YD9MRcUNbtFljMV9pf8 LzmbKpmzSAwJF8BxWp4eQGvqcPDnHAGsLvnGlA0/+V1Z0GV10ejlR3wGQAwTH919 i6JnYgJzcUc3T/G8QHB6hp8/NKZ2lYRmR9RAsRmMixHjXVcYu5gRumDYsbDfC29n cE1vMgIQHiZJE2wSVrtdB0vPe52HnmI9cfiWLK2sjt9250uloygZsdiP6m5MNa2K 5R2ICOsWYBSZZe4hpVy8VO8JmbSPGEh0AAFcxF9s3iNDVlkEzl/6LRrA2pNw6g5m gFngZTdq934mIcR/xpWO1Q2lDC1P2CEQrTLlfJGKaZB6GPlUSni/qQJWb3aIhwo6 dgbmjhc2TKz1h32gx436 =eMSf -----END PGP SIGNATURE----- --=-=-=--