[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cycling through windows
From: |
Teemu Likonen |
Subject: |
Re: cycling through windows |
Date: |
Fri, 12 Jul 2013 19:17:58 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
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))
pgpSd6YPGTfod.pgp
Description: PGP signature