From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: 26.1-rc1: global-set-key suggestions Date: Thu, 31 May 2018 21:33:43 +0100 Message-ID: <20180531203343.GA38066@breton.holly.idiocy.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="OgqxwSJOaUobr8KG" Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1527798714 27978 195.159.176.226 (31 May 2018 20:31:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 31 May 2018 20:31:54 +0000 (UTC) User-Agent: Mutt/1.9.3 (2018-01-21) Cc: "emacs-devel@gnu.org" To: Van Ly Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 31 22:31:50 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fOUEf-0007At-RG for ged-emacs-devel@m.gmane.org; Thu, 31 May 2018 22:31:49 +0200 Original-Received: from localhost ([::1]:46022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOUGm-0007PP-Qz for ged-emacs-devel@m.gmane.org; Thu, 31 May 2018 16:34:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOUGc-0007P7-Iy for emacs-devel@gnu.org; Thu, 31 May 2018 16:33:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOUGb-0003jI-Iv for emacs-devel@gnu.org; Thu, 31 May 2018 16:33:50 -0400 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:34979) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fOUGb-0003i6-9n for emacs-devel@gnu.org; Thu, 31 May 2018 16:33:49 -0400 Original-Received: by mail-wm0-x233.google.com with SMTP id j15-v6so4731136wme.0 for ; Thu, 31 May 2018 13:33:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=c5gNG3l+P35xYTy38W8H8piBjP8ZEsPR801GWB7lwI0=; b=QtEhuaxfqVMToWkiTOB6kz/p6uT6Gyk7gNhE/PavLEnnGzTa7R7m07evqkfRFsXWUM +xhfPZZbJTXgdmkfnHfCPAJKtOHxruTY3r/QzEVY3XUm/s7mwqc420lbvQhaC4ROAyyY x1OaxLuK3TMFxa9fK1zhbfnmoxy0oadIgY0IIk4AbrgAC8VNkSXeQMlXg8MnZ8Xc//nB bJnW9A0znPzYvXlXWC+dc968CRxkqFsHTiL+f989a+eN5JODHWBIskMcH69ufRLxakvJ 2xe4yPVMzMrp2Le/BfwTyhXBTYiSSJBKf34azsVj7MxaPMjMhcU2/XGwTG/5fVcIbZ3A U4jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=c5gNG3l+P35xYTy38W8H8piBjP8ZEsPR801GWB7lwI0=; b=RISFiZ/BICA02VeuJmUApzZnBaIUWxHJtSWvqA5bBHxi0368LD7jA0teongqZ86hKs PlEcZjO+IajzNTQfcdmm+awVA+M43MUYuAW78CweOnP11J8eKde9/ei/RxHfjPkIGhzx cTpG/lOMKP2NMZp1hCBB2tl6FRGYWTphywILbFte36TepVRGxjicLHmh8E6hnoafWd8B XZ4ZzGbwD6/E1KI4nZwDnf+Ef4askhWh6UFI2rEPYMR+ugoUvNIeeB5dGrJZuR2m0ERU 7oQmAsaLrs3b2qQlmvv0ap4npDRbxa1t89mNy3QKlRxiZ6pOb2krRF9/tNpjzxAh1+/6 0YZg== X-Gm-Message-State: APt69E23L4sh1tpPNbU9S09aRtGWwD7kfYtMRvWNaLnHvb6I+jWglHGt XA/WmOOmTHFEbG2grlYIyc3PlV38 X-Google-Smtp-Source: ADUXVKIOWSLa+cEyIwQEqbLv6qOX4v3ebdtTo9J3vCZi2oVlWVBHvc2b1aagFAef79hEz4x1hWxMZw== X-Received: by 2002:a1c:5ec9:: with SMTP id s192-v6mr797561wmb.54.1527798827740; Thu, 31 May 2018 13:33:47 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-acd0-c556-d8b1-5ceb.holly.idiocy.org. [2001:8b0:3f8:8129:acd0:c556:d8b1:5ceb]) by smtp.gmail.com with ESMTPSA id k4-v6sm520719wrr.68.2018.05.31.13.33.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 13:33:46 -0700 (PDT) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225871 Archived-At: --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Sat, Apr 28, 2018 at 09:03:42PM -0400, Van Ly wrote: > I'd like to suggest the following improvement to the out-of-the-box > behaviour on apple-darwin, NS appkit :- > > ;; > ;; Allow Command-Plus-or-Minus to text-scale fontsize. > ;; > > (global-set-key (kbd "s-+") #'text-scale-increase) > (global-set-key (kbd "s-=") #'text-scale-increase) > (global-set-key (kbd "s--") #'text-scale-decrease) I’ve attached a patch for this. -- Alan Third --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Add-NS-style-text-scale-keybindings.patch" >From 53670c6fdab102e2790ef7ff3c17bf0899d7e377 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Thu, 31 May 2018 21:28:09 +0100 Subject: [PATCH] Add NS style text scale keybindings * lisp/term/ns-win.el: Add super-based keybindings for adjusting text zoom. --- lisp/term/ns-win.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index eff8adcd3b..8b23cab010 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el @@ -141,6 +141,10 @@ global-map (define-key global-map [?\s-x] 'kill-region) (define-key global-map [?\s-y] 'ns-paste-secondary) (define-key global-map [?\s-z] 'undo) +(define-key global-map [?\s-+] 'text-scale-adjust) +(define-key global-map [?\s-=] 'text-scale-adjust) +(define-key global-map [?\s--] 'text-scale-adjust) +(define-key global-map [?\s-0] 'text-scale-adjust) (define-key global-map [?\s-|] 'shell-command-on-region) (define-key global-map [s-kp-bar] 'shell-command-on-region) (define-key global-map [?\C-\s- ] 'ns-do-show-character-palette) -- 2.16.1 --OgqxwSJOaUobr8KG--