unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Van Ly <van@scratchspace.com.au>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: 26.1-rc1: global-set-key suggestions
Date: Thu, 31 May 2018 21:33:43 +0100	[thread overview]
Message-ID: <20180531203343.GA38066@breton.holly.idiocy.org> (raw)
In-Reply-To: <C1ISVpmxGY4Bb10fL5UgkFOGSuHQf6KoWSNXLKnH3OeSjN3u9pujiTtBAGDsm-MfuQz7dvJBzo-zZzYLNBwwOvc7aorkNtKouj5g8ZfTB-8=@scratchspace.com.au>

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

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

[-- Attachment #2: 0001-Add-NS-style-text-scale-keybindings.patch --]
[-- Type: text/plain, Size: 1060 bytes --]

From 53670c6fdab102e2790ef7ff3c17bf0899d7e377 Mon Sep 17 00:00:00 2001
From: Alan Third <alan@idiocy.org>
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


  parent reply	other threads:[~2018-05-31 20:33 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-29  1:03 26.1-rc1: global-set-key suggestions Van Ly
2018-04-29  2:43 ` Eli Zaretskii
2018-04-29  3:14   ` Van L
2018-04-29 10:49     ` Bastien
2018-04-29 20:34       ` Alan Third
2018-04-30 12:07       ` Van L
2018-04-29 16:38     ` Radon Rosborough
2018-04-29 21:07 ` Clément Pit-Claudel
2018-04-29 21:50   ` Drew Adams
2018-05-10 12:34   ` Siraphob (Ben) Phipathananunth
2018-05-13 13:35     ` Alan Third
2018-05-13 22:09       ` Tim Cross
2018-05-14  4:30         ` Stefan Monnier
2018-05-14  6:49           ` Van L
2018-05-14  9:12             ` joakim
2018-05-14 11:35               ` Van L
2018-05-14 12:02                 ` Yuri Khan
2018-05-15  2:46                   ` Van L
2018-05-14 12:58         ` Richard Stallman
2018-05-15 18:30         ` Alan Third
2018-05-31 20:33 ` Alan Third [this message]
2018-06-02  4:14   ` Van L

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180531203343.GA38066@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=emacs-devel@gnu.org \
    --cc=van@scratchspace.com.au \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).