* I am trying to become an Emacs "super" user on Windows
@ 2024-10-23 19:49 Kepa via Users list for the GNU Emacs text editor
2024-10-23 20:14 ` Corwin Brust
2024-10-23 21:47 ` Stefan Monnier via Users list for the GNU Emacs text editor
0 siblings, 2 replies; 5+ messages in thread
From: Kepa via Users list for the GNU Emacs text editor @ 2024-10-23 19:49 UTC (permalink / raw)
To: 'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'
;;;_ Super
;; Disable Caps Lock's default behavior (Windows-specific)
(setq w32-enable-caps-lock nil)
;; Remap Caps Lock to Super modifier key
(define-key key-translation-map (kbd "<capslock>") 'event-apply-super-modifier)
Now I should be able to use Caps Lock as the "Super" key, MULTIPLYING the number of possible combinations (x2 if I use maximum 2 modifiers at the same time).
But..., s-M- works while M-s- doesn't work.
Is the order of the super modifier important, or shouldn't be?
Any help would be appreciated.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I am trying to become an Emacs "super" user on Windows
2024-10-23 19:49 Kepa via Users list for the GNU Emacs text editor
@ 2024-10-23 20:14 ` Corwin Brust
2024-10-23 21:37 ` Kepa via Users list for the GNU Emacs text editor
2024-10-23 21:47 ` Stefan Monnier via Users list for the GNU Emacs text editor
1 sibling, 1 reply; 5+ messages in thread
From: Corwin Brust @ 2024-10-23 20:14 UTC (permalink / raw)
To: Kepa; +Cc: Help-Gnu-Emacs (help-gnu-emacs@gnu.org)
On Wed, Oct 23, 2024, 14:49 Kepa via Users list for the GNU Emacs text
editor <help-gnu-emacs@gnu.org> wrote:
>
> But..., s-M- works while M-s- doesn't work.
> Is the order of the super modifier important, or shouldn't be?
> Any help would be appreciated.
>
Are you saying the order you depress keys in makes a difference when
pressing chords involving swapped capslock and super on Windows? If so,
does it work when you press all three (or just both modifiers) at the exact
same time?
Do you have sticky keys enabled in Windows, by chance?
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I am trying to become an Emacs "super" user on Windows
2024-10-23 20:14 ` Corwin Brust
@ 2024-10-23 21:37 ` Kepa via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 5+ messages in thread
From: Kepa via Users list for the GNU Emacs text editor @ 2024-10-23 21:37 UTC (permalink / raw)
To: Corwin Brust; +Cc: Help-Gnu-Emacs (help-gnu-emacs@gnu.org)
Hi, Corwin
On 23/10/2024 22:14, corwin at bru.st wrote:
> On Wed, Oct 23, 2024, 14:49 Kepa via Users list for the GNU Emacs text
> editor <help-gnu-emacs@gnu.org> wrote:
>
>
> But..., s-M- works while M-s- doesn't work.
> Is the order of the super modifier important, or shouldn't be?
> Any help would be appreciated.
>
>
> Are you saying the order you depress keys in makes a difference when
> pressing chords involving swapped capslock and super on Windows? If
> so, does it work when you press all three (or just both modifiers) at
> the exact same time?
Super (ex-capslock) must be the leading key. When pressing all three,
super must be the first one, or it is ignored.
If I press Meta or control first, I get this message:
M-<capslock> is undefined, or
C-<capslock> is undefined, or, if all three:
C-M-<capslock> is undefined
If Super is leading, it works, for example:
C-M-s-f
>
> Do you have sticky keys enabled in Windows, by chance?
OFF
Fwd:
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I am trying to become an Emacs "super" user on Windows
2024-10-23 19:49 Kepa via Users list for the GNU Emacs text editor
2024-10-23 20:14 ` Corwin Brust
@ 2024-10-23 21:47 ` Stefan Monnier via Users list for the GNU Emacs text editor
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2024-10-23 21:47 UTC (permalink / raw)
To: help-gnu-emacs
> (define-key key-translation-map (kbd "<capslock>") 'event-apply-super-modifier)
`event-apply-*-modifier` suffer from all kinds of limitations, so
I don't think you'll like the result even if you can make it work in
some cases.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I am trying to become an Emacs "super" user on Windows
@ 2024-10-24 2:27 Kepa via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 5+ messages in thread
From: Kepa via Users list for the GNU Emacs text editor @ 2024-10-24 2:27 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Help-Gnu-Emacs (help-gnu-emacs@gnu.org)
Thanks
It was incredibly simple, and almost works.
What would you please recommend?
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-10-24 2:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-24 2:27 I am trying to become an Emacs "super" user on Windows Kepa via Users list for the GNU Emacs text editor
-- strict thread matches above, loose matches on Subject: below --
2024-10-23 19:49 Kepa via Users list for the GNU Emacs text editor
2024-10-23 20:14 ` Corwin Brust
2024-10-23 21:37 ` Kepa via Users list for the GNU Emacs text editor
2024-10-23 21:47 ` Stefan Monnier via Users list for the GNU Emacs text editor
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).