From: Tomas Nordin <tomasn@posteo.net>
To: Drew Adams <drew.adams@oracle.com>, help-gnu-emacs@gnu.org
Subject: RE: Just o after C-x o (other-window)
Date: Fri, 21 Apr 2017 22:55:58 +0200 [thread overview]
Message-ID: <871ssl5vkx.fsf@debian.tompa.tv> (raw)
In-Reply-To: <543fc5f1-8d63-4c75-b6c7-85d4ed25caac@default>
Drew Adams <drew.adams@oracle.com> writes:
>> 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 ...'
Nice, exactly the answer I was hoping for. Thanks, this behaviour fits
my brain somehow.
prev parent reply other threads:[~2017-04-21 20:55 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
2017-04-21 20:55 ` Tomas Nordin [this message]
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=871ssl5vkx.fsf@debian.tompa.tv \
--to=tomasn@posteo.net \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
/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.