From: Drew Adams <drew.adams@oracle.com>
To: Tomas Nordin <tomasn@posteo.net>, help-gnu-emacs@gnu.org
Subject: RE: Just o after C-x o (other-window)
Date: Thu, 20 Apr 2017 16:23:02 -0700 (PDT) [thread overview]
Message-ID: <543fc5f1-8d63-4c75-b6c7-85d4ed25caac@default> (raw)
In-Reply-To: <87mvbaj1r4.fsf@debian.tompa.tv>
> I would like the other-window function to behave like text-scale-adjust.
> I mean, after hitting `C-x o` to select next window, I want `o` to mean
> next-window again. Any other key would escape this minor mode. Did
> somebody here by any chance implement that already?
>
> The text-scale-adjust function behaves like that, after `C-x C-+` it is
> enough to hit `+` or `-` to further adjust the scaling, which I think is
> excellent.
(defun other-window-repeat ()
"Repeatable `other-window'."
(interactive)
(require 'repeat)
(repeat-command 'other-window))
(defun repeat-command (command)
"Repeat COMMAND."
(let ((repeat-message-function 'ignore))
(setq last-repeatable-command command)
(repeat nil)))
(global-set-key [remap other-window] 'other-window-repeat)
Then just use `C-x o o o o o ...'
next prev parent reply other threads:[~2017-04-20 23:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-20 19:51 Just o after C-x o (other-window) Tomas Nordin
2017-04-20 20:04 ` Kaushal Modi
2017-04-20 22:44 ` Eric Abrahamsen
2017-04-21 20:48 ` Tomas Nordin
2017-04-20 23:23 ` Drew Adams [this message]
2017-04-21 20:55 ` Tomas Nordin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=543fc5f1-8d63-4c75-b6c7-85d4ed25caac@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tomasn@posteo.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.