all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 26.1-rc1: global-set-key suggestions
@ 2018-04-29  1:03 Van Ly
  2018-04-29  2:43 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Van Ly @ 2018-04-29  1:03 UTC (permalink / raw)
  To: emacs-devel@gnu.org

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

Hello.

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)

Van L
ⓔ van@scratch.space

[-- Attachment #2: Type: text/html, Size: 860 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  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 21:07 ` Clément Pit-Claudel
  2018-05-31 20:33 ` Alan Third
  2 siblings, 1 reply; 22+ messages in thread
From: Eli Zaretskii @ 2018-04-29  2:43 UTC (permalink / raw)
  To: Van Ly; +Cc: emacs-devel

> Date: Sat, 28 Apr 2018 21:03:42 -0400
> From: Van Ly <van@scratchspace.com.au>
> 
> 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)

Why not the C-+ etc. bindings used on the other platforms?



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-04-29  2:43 ` Eli Zaretskii
@ 2018-04-29  3:14   ` Van L
  2018-04-29 10:49     ` Bastien
  2018-04-29 16:38     ` Radon Rosborough
  0 siblings, 2 replies; 22+ messages in thread
From: Van L @ 2018-04-29  3:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel@gnu.org

On April 29, 2018 12:43 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Van L
> > 
> > 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)
> >     
> 
> Why not the C-+ etc. bindings used on the other platforms?

The bindings for font size change are :-

C-x C-+
C-x C--

Going native and being consistent with other apps on the platform is a pleasant experience; and, for beginners, it makes plain and simple sense, at least until, they've done the tutorial and have tried `M-x customize'.

Being unable to naïvely change the fontsize means the beginner has to endure the struggle of reading the wrong sized font for them initially. Or, every beginner has to hit a search engine to discover how to make the change for themselves.

Lastly, the Command-Plus-or-Minus is a simple two finger combination press which is easier to type than the C-x separately followed by C-plus-or-minus. Other native platform keybindings are already there out of the box, such as, Command-W.

--
Van L



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  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
  1 sibling, 2 replies; 22+ messages in thread
From: Bastien @ 2018-04-29 10:49 UTC (permalink / raw)
  To: Van L; +Cc: Eli Zaretskii, emacs-devel@gnu.org

Hi,

Van L <van@scratchspace.com.au> writes:

> The bindings for font size change are :-
>
> C-x C-+
> C-x C--

I interactively change the text size often enough to use these custom
keybindings:

  (global-set-key (kbd "C-+") 'text-scale-increase)
  (global-set-key (kbd "C--") 'text-scale-decrease)
  (global-set-key (kbd "C-=") 'text-scale-adjust)

which is what I also use in other applications (e.g. Firefox) on a
GNU/Linux machine.  I thought C-+/- was pretty standard.

C-+ and C-= are free in Emacs, but C-- is not, emulating C-u -, but
I don't really mind having to type C-u - instead of C-- when I need.

2 cents,

-- 
 Bastien



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-04-29  3:14   ` Van L
  2018-04-29 10:49     ` Bastien
@ 2018-04-29 16:38     ` Radon Rosborough
  1 sibling, 0 replies; 22+ messages in thread
From: Radon Rosborough @ 2018-04-29 16:38 UTC (permalink / raw)
  To: Van L; +Cc: Eli Zaretskii, emacs-devel@gnu.org

> Going native and being consistent with other apps on the platform is a pleasant experience;

Absolutely 100% agreed. Binding s-+, s-=, s-- would be an unambiguous
improvement in user experience on macOS with no downsides that I can
see. In fact, I may do this now in my personal configuration.

Binding C-+ etc. instead would be a mistake, at least on macOS.



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-04-29 10:49     ` Bastien
@ 2018-04-29 20:34       ` Alan Third
  2018-04-30 12:07       ` Van L
  1 sibling, 0 replies; 22+ messages in thread
From: Alan Third @ 2018-04-29 20:34 UTC (permalink / raw)
  To: Bastien; +Cc: Eli Zaretskii, Van L, emacs-devel@gnu.org

On Sun, Apr 29, 2018 at 12:49:57PM +0200, Bastien wrote:
> I interactively change the text size often enough to use these custom
> keybindings:
> 
>   (global-set-key (kbd "C-+") 'text-scale-increase)
>   (global-set-key (kbd "C--") 'text-scale-decrease)
>   (global-set-key (kbd "C-=") 'text-scale-adjust)
> 
> which is what I also use in other applications (e.g. Firefox) on a
> GNU/Linux machine.  I thought C-+/- was pretty standard.

MacOS commonly replaces C-X commands on other platforms with s-X.
Amusingly it means you get both emacs style bindings (e.g. C-a to move
to start of line) alongside CUA type bindings (e.g. s-a to select
all).

> C-+ and C-= are free in Emacs, but C-- is not, emulating C-u -, but
> I don't really mind having to type C-u - instead of C-- when I need.

Looks like the macOS super bindings will interfere with s--, which is
bound to center-line. center-line is also bound to M-o M-s, so I don’t
think that losing the s-- binding would be a huge problem.

This sounds like a good change, too late for Emacs 26, though.
-- 
Alan Third



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-04-29  1:03 26.1-rc1: global-set-key suggestions Van Ly
  2018-04-29  2:43 ` Eli Zaretskii
@ 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-31 20:33 ` Alan Third
  2 siblings, 2 replies; 22+ messages in thread
From: Clément Pit-Claudel @ 2018-04-29 21:07 UTC (permalink / raw)
  To: emacs-devel

On 2018-04-28 21:03, Van Ly wrote:
> Hello.
> 
> I'd like to suggest the following improvement to the out-of-the-box
> behaviour on apple-darwin, NS appkit 
>     (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'd prefer binding these to a function that changes the font size on the whole frame, rather than just the current buffer.




^ permalink raw reply	[flat|nested] 22+ messages in thread

* RE: 26.1-rc1: global-set-key suggestions
  2018-04-29 21:07 ` Clément Pit-Claudel
@ 2018-04-29 21:50   ` Drew Adams
  2018-05-10 12:34   ` Siraphob (Ben) Phipathananunth
  1 sibling, 0 replies; 22+ messages in thread
From: Drew Adams @ 2018-04-29 21:50 UTC (permalink / raw)
  To: Clément Pit-Claudel, emacs-devel

> >     (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'd prefer binding these to a function that changes the font size on the
> whole frame, rather than just the current buffer.

See `zoom-frm-in' and `zoom-frm-out', in `zoom-frm.el'.

Or `zoom-in' and `zoom-out' (same library), which you
can use for both frame zooming and buffer zooming.

,----
| zoom-in is an interactive compiled Lisp function.
| 
| It is bound to S-mouse-1, C-wheel-up.
| 
| (zoom-in ARG)
| 
| Zoom current frame or buffer in.
| With a prefix arg, toggle between zooming frame and zooming buffer.
| Frame zooming uses command ‘zoom-frm-in’.
| Buffer zooming uses command ‘text-scale-increase’.
`----

https://www.emacswiki.org/emacs/download/zoom-frm.el



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-04-29 10:49     ` Bastien
  2018-04-29 20:34       ` Alan Third
@ 2018-04-30 12:07       ` Van L
  1 sibling, 0 replies; 22+ messages in thread
From: Van L @ 2018-04-30 12:07 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-devel\@gnu.org

Hello.

On April 29, 2018 8:49 PM, Bastien <bzg@gnu.org> wrote:

> (global-set-key (kbd "C-=") 'text-scale-adjust)

Thanks. I like that. I'll use that on my personal "s-=" mapping.

Is there an equally quick way to set permanently the zoomed fontsize? to store in Default's height :-

- M-x customize
 + Faces
   + Basic Faces
      + Default
         + Height

Beyond Emacs 26, having Default's Foreground/Background set colors according to time of day or level of ambient lighting is nice to have. For example, a totally black background reverse video effect is preferable when almost all the lights are off. A behavior that appropriately sets an inversely related foreground color given a slide in background color ranging from gray100 to gray0 would do.

> 2 cents,

Thanks are also owing to siraben who is behind the push to modernise bignum in calc.el.

The three liner at the start of this thread came from siraben. Thanks siraben.



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  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
  1 sibling, 1 reply; 22+ messages in thread
From: Siraphob (Ben) Phipathananunth @ 2018-05-10 12:34 UTC (permalink / raw)
  To: Clément Pit-Claudel, emacs-devel

Clément Pit-Claudel wrote:

> I'd prefer binding these to a function that changes the font size on
> the whole frame, rather than just the current buffer.

This is exactly what I do in my init file:
https://github.com/siraben/dotfiles/blob/master/emacs/.emacs.d/modules/siraben-fonts.el

Specifically, this is done by using `set-frame-font' which means 
elements such as the mode line are enlarged as well. Note that I am 
binding the font size changes to C-+, C-- and C-=, but it could easily 
be done with s-+, s-- and s-= respectively.

I don't see any conflicting key bindings with macOS. What are other 
maintainers' thoughts on this?


Siraphob (Ben) Phipathananunth



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-05-10 12:34   ` Siraphob (Ben) Phipathananunth
@ 2018-05-13 13:35     ` Alan Third
  2018-05-13 22:09       ` Tim Cross
  0 siblings, 1 reply; 22+ messages in thread
From: Alan Third @ 2018-05-13 13:35 UTC (permalink / raw)
  To: Siraphob (Ben) Phipathananunth; +Cc: Clément Pit-Claudel, emacs-devel

On Thu, May 10, 2018 at 07:34:48PM +0700, Siraphob (Ben) Phipathananunth wrote:
> Clément Pit-Claudel wrote:
> 
> > I'd prefer binding these to a function that changes the font size on
> > the whole frame, rather than just the current buffer.
> 
> This is exactly what I do in my init file:
> https://github.com/siraben/dotfiles/blob/master/emacs/.emacs.d/modules/siraben-fonts.el
> 
> Specifically, this is done by using `set-frame-font' which means elements
> such as the mode line are enlarged as well. Note that I am binding the font
> size changes to C-+, C-- and C-=, but it could easily be done with s-+, s--
> and s-= respectively.
> 
> I don't see any conflicting key bindings with macOS. What are other
> maintainers' thoughts on this?

I’m no longer sure if we’re talking about just binding these keys on
the NS port or generally, but if it’s just the NS port then I have no
problem with either option. Resizing everything seems to match up most
closely with the other apps I use, but I’m not a heavy user of macOS
specific apps, so I can’t say whether it would be expected behaviour
or not.

-- 
Alan Third



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-05-13 13:35     ` Alan Third
@ 2018-05-13 22:09       ` Tim Cross
  2018-05-14  4:30         ` Stefan Monnier
                           ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Tim Cross @ 2018-05-13 22:09 UTC (permalink / raw)
  To: Alan Third; +Cc: Clément Pit-Claudel, Emacs developers

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

Just to add another perspective....

I use Emacs on macOS at work and on GNU Linux at home. So for me, one of
the great things about Emacs was/is consistency in key bindings across
platforms. If we start making bindings different depending on the platform,
then you lose that level of consistency.

As this is Emacs, this is not a huge issue as it is easy enough to set them
to whatever I want, but thought I'd just mention that making bindings
platform dependent may have a downside for those who work in Emacs from
different platforms.

Tim

P.S. I've been using Emacs for so long, I tend to change the OS bindings to
match with Emacs rather than the other way round. Unfortunately, unlike GNU
Linux, macOS does not offer the same level of flexibility in this area

On 13 May 2018 at 23:35, Alan Third <alan@idiocy.org> wrote:

> On Thu, May 10, 2018 at 07:34:48PM +0700, Siraphob (Ben) Phipathananunth
> wrote:
> > Clément Pit-Claudel wrote:
> >
> > > I'd prefer binding these to a function that changes the font size on
> > > the whole frame, rather than just the current buffer.
> >
> > This is exactly what I do in my init file:
> > https://github.com/siraben/dotfiles/blob/master/emacs/.
> emacs.d/modules/siraben-fonts.el
> >
> > Specifically, this is done by using `set-frame-font' which means elements
> > such as the mode line are enlarged as well. Note that I am binding the
> font
> > size changes to C-+, C-- and C-=, but it could easily be done with s-+,
> s--
> > and s-= respectively.
> >
> > I don't see any conflicting key bindings with macOS. What are other
> > maintainers' thoughts on this?
>
> I’m no longer sure if we’re talking about just binding these keys on
> the NS port or generally, but if it’s just the NS port then I have no
> problem with either option. Resizing everything seems to match up most
> closely with the other apps I use, but I’m not a heavy user of macOS
> specific apps, so I can’t say whether it would be expected behaviour
> or not.
>
> --
> Alan Third
>
>


-- 
regards,

Tim

--
Tim Cross

[-- Attachment #2: Type: text/html, Size: 3023 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-05-13 22:09       ` Tim Cross
@ 2018-05-14  4:30         ` Stefan Monnier
  2018-05-14  6:49           ` Van L
  2018-05-14 12:58         ` Richard Stallman
  2018-05-15 18:30         ` Alan Third
  2 siblings, 1 reply; 22+ messages in thread
From: Stefan Monnier @ 2018-05-14  4:30 UTC (permalink / raw)
  To: emacs-devel

> As this is Emacs, this is not a huge issue as it is easy enough to set them
> to whatever I want, but thought I'd just mention that making bindings
> platform dependent may have a downside for those who work in Emacs from
> different platforms.

Indeed, there's a tension in this respect.  Ideally, we should provide
sets of customizations which better integrates Emacs into various OSes,
which users can then choose to enable or not.

A kind of "custom-theme" for that would be great, but currently
custom-themes don't work well for that since they can't really provide
key-bindings.


        Stefan




^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-05-14  4:30         ` Stefan Monnier
@ 2018-05-14  6:49           ` Van L
  2018-05-14  9:12             ` joakim
  0 siblings, 1 reply; 22+ messages in thread
From: Van L @ 2018-05-14  6:49 UTC (permalink / raw)
  To: Emacs developers


> Stefan Monnier writes:
> 
> A kind of "custom-theme" for that would be great, but currently
> custom-themes don't work well for that since they can't really provide
> key-bindings.

There could be money to be made selling the perfect Emacs physical keyboard with key-binding-themes included, like those stealthy gamer’s keyboards but for programmers and readers.

I switch between the smaller Apple keyboard and fullsize Thinkpad keyboard, both are without the numpad, and I really dislike:

1. typing C-x ; smallest left finger on `caps lock’ ; middle finger on x

2. the four extremely tiny arrow keys and the inverted T configuration









^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-05-14  6:49           ` Van L
@ 2018-05-14  9:12             ` joakim
  2018-05-14 11:35               ` Van L
  0 siblings, 1 reply; 22+ messages in thread
From: joakim @ 2018-05-14  9:12 UTC (permalink / raw)
  To: Van L; +Cc: Emacs developers

Van L <van@scratch.space> writes:

>> Stefan Monnier writes:
>> 
>> A kind of "custom-theme" for that would be great, but currently
>> custom-themes don't work well for that since they can't really provide
>> key-bindings.
>
> There could be money to be made selling the perfect Emacs physical keyboard with key-binding-themes included, like those stealthy gamer’s keyboards but for programmers and readers.

I find the ergodox good for this.

https://gitlab.com/jave/jv-ergodox

The repo contains a fork of Ergodox firmware, and some elisp to generate
new firmware with new emacs oriented keyboard layouts.

>
> I switch between the smaller Apple keyboard and fullsize Thinkpad keyboard, both are without the numpad, and I really dislike:
>
> 1. typing C-x ; smallest left finger on `caps lock’ ; middle finger on x
>
> 2. the four extremely tiny arrow keys and the inverted T configuration



>
>
>
>
>
>
>
-- 
Joakim Verona
joakim@verona.se
+46705459454



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-05-14  9:12             ` joakim
@ 2018-05-14 11:35               ` Van L
  2018-05-14 12:02                 ` Yuri Khan
  0 siblings, 1 reply; 22+ messages in thread
From: Van L @ 2018-05-14 11:35 UTC (permalink / raw)
  To: joakim; +Cc: Emacs developers


> joakim@verona.se writes:
> 
> I find the ergodox good for this.
> 
> https://gitlab.com/jave/jv-ergodox
> 
> The repo contains a fork of Ergodox firmware, and some elisp to generate
> new firmware with new emacs oriented keyboard layouts.

I’d like a dedicated Emacs variant of Vortex Race 3 in color with:

- bottom left fn-key does C-x
- four normal sized oneline of keys right of Spacebar for arrows
- dedicated forward/backward keys for
  + pages
  + paragraphs
  + sentences
  + words
  + characters
- dedicated top/bottom key for programming like begin/end of function goto

  ergodox.org doesn’t but ergodox.io does get to a page


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-05-14 11:35               ` Van L
@ 2018-05-14 12:02                 ` Yuri Khan
  2018-05-15  2:46                   ` Van L
  0 siblings, 1 reply; 22+ messages in thread
From: Yuri Khan @ 2018-05-14 12:02 UTC (permalink / raw)
  To: van; +Cc: Joakim Verona, Emacs developers

On Mon, May 14, 2018 at 6:35 PM Van L <van@scratch.space> wrote:

> I’d like a dedicated Emacs variant of Vortex Race 3 […]

You know you could realistically build one from parts and it would cost not
much over retail price?



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-05-13 22:09       ` Tim Cross
  2018-05-14  4:30         ` Stefan Monnier
@ 2018-05-14 12:58         ` Richard Stallman
  2018-05-15 18:30         ` Alan Third
  2 siblings, 0 replies; 22+ messages in thread
From: Richard Stallman @ 2018-05-14 12:58 UTC (permalink / raw)
  To: Tim Cross; +Cc: alan, cpitclaudel, emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > I use Emacs on macOS at work and on GNU Linux at home. So for me, one of
  > the great things about Emacs was/is consistency in key bindings across
  > platforms. If we start making bindings different depending on the platform,
  > then you lose that level of consistency.

I agree.

-- 
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
Skype: No way! See https://stallman.org/skype.html.




^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-05-14 12:02                 ` Yuri Khan
@ 2018-05-15  2:46                   ` Van L
  0 siblings, 0 replies; 22+ messages in thread
From: Van L @ 2018-05-15  2:46 UTC (permalink / raw)
  To: Yuri Khan; +Cc: Emacs developers


> Yuri Khan writes:
> 
>> I’d like a dedicated Emacs variant of Vortex Race 3 […]
> 
> You know you could realistically build one from parts and it would cost not
> much over retail price?

How about a dedicated Emacs mini keypad the size of 13⨯21cm - 5⨯8¼ paper? designed by Moleskine® in Italy, set at the retail price of a mouse and placed diagonally from the top corner of a conventional keyboard.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-05-13 22:09       ` Tim Cross
  2018-05-14  4:30         ` Stefan Monnier
  2018-05-14 12:58         ` Richard Stallman
@ 2018-05-15 18:30         ` Alan Third
  2 siblings, 0 replies; 22+ messages in thread
From: Alan Third @ 2018-05-15 18:30 UTC (permalink / raw)
  To: Tim Cross; +Cc: Clément Pit-Claudel, Emacs developers

On Mon, May 14, 2018 at 08:09:36AM +1000, Tim Cross wrote:
> Just to add another perspective....
> 
> I use Emacs on macOS at work and on GNU Linux at home. So for me, one of
> the great things about Emacs was/is consistency in key bindings across
> platforms. If we start making bindings different depending on the platform,
> then you lose that level of consistency.

The NS port already has over 40 ‘NS‐like’ bindings and has done since
it was merged in ten years ago.

-- 
Alan Third



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-04-29  1:03 26.1-rc1: global-set-key suggestions Van Ly
  2018-04-29  2:43 ` Eli Zaretskii
  2018-04-29 21:07 ` Clément Pit-Claudel
@ 2018-05-31 20:33 ` Alan Third
  2018-06-02  4:14   ` Van L
  2 siblings, 1 reply; 22+ messages in thread
From: Alan Third @ 2018-05-31 20:33 UTC (permalink / raw)
  To: Van Ly; +Cc: emacs-devel@gnu.org

[-- 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


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* Re: 26.1-rc1: global-set-key suggestions
  2018-05-31 20:33 ` Alan Third
@ 2018-06-02  4:14   ` Van L
  0 siblings, 0 replies; 22+ messages in thread
From: Van L @ 2018-06-02  4:14 UTC (permalink / raw)
  To: Alan Third; +Cc: emacs-devel\@gnu.org

Alan Third  writes:

> > 
> >     ;;
> >     ;; 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.
> 

Super thanks.

The Mac Port doesn't do the super-key at all, for example, for to:

;;(Define-key global-map [s-right] 'ns-next-frame)
;;(define-key global-map [s-left] 'ns-prev-frame)

Interestingly, Mac Port has assigned `fn-left` to perform C-a, <home>.

A search for `keyboards emacs` on Amazon shows four year old stickers, no keyboards, yet.



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-06-02  4:14 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2018-06-02  4:14   ` Van L

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.