From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Just o after C-x o (other-window) Date: Thu, 20 Apr 2017 16:23:02 -0700 (PDT) Message-ID: <543fc5f1-8d63-4c75-b6c7-85d4ed25caac@default> References: <87mvbaj1r4.fsf@debian.tompa.tv> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1492730641 4568 195.159.176.226 (20 Apr 2017 23:24:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2017 23:24:01 +0000 (UTC) To: Tomas Nordin , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 21 01:23:52 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1LQT-0000vN-WA for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Apr 2017 01:23:50 +0200 Original-Received: from localhost ([::1]:56364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1LQZ-0005De-UQ for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Apr 2017 19:23:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1LPw-00055B-63 for help-gnu-emacs@gnu.org; Thu, 20 Apr 2017 19:23:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1LPs-0001Ae-TO for help-gnu-emacs@gnu.org; Thu, 20 Apr 2017 19:23:16 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:29386) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d1LPs-00019Z-KZ for help-gnu-emacs@gnu.org; Thu, 20 Apr 2017 19:23:12 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v3KNN9Ko019590 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 20 Apr 2017 23:23:09 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v3KNN6Bn007106 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 Apr 2017 23:23:09 GMT Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id v3KNN3es022764; Thu, 20 Apr 2017 23:23:04 GMT In-Reply-To: <87mvbaj1r4.fsf@debian.tompa.tv> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6767.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112830 Archived-At: > 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? >=20 > 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 ...'