[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: other-window-or-buffer
From: |
Martin Blais |
Subject: |
Re: other-window-or-buffer |
Date: |
Tue, 16 May 2006 07:21:34 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
John Sturdy <john.sturdy <at> ul.ie> writes:
>
> Here's one of those "commands I wouldn't be without", to avoid all that
> typing of buffer names (and all that hurried mistyping of buffer
> names).
>
> (defun other-window-or-buffer ()
I've got something different but similar in spirit, which cycles
between all the windows of all the frames (all my emacs frames live
in a single winmgr workspace):
(defun other-window-all-frames ()
(interactive)
(let* ((w (next-window nil nil 'visible))
(f (window-frame w)))
(select-frame-set-input-focus f)
(select-window w)))
(substitute-key-definition
'other-window (repeatable-command-def 'other-window-all-frames)
(current-global-map))