Questions tagged [modifier-key]
19 questions
2
votes
2 answers
How to interpret the org-mode-map key binding?
From the docs https://org-roam.readthedocs.io/en/master/ecosystem/, org-mode-map has binding for s-Y
(use-package org-download
:after org
:bind
(:map org-mode-map
(("s-Y" . org-download-screenshot)
("s-y" .…

john323423
- 33
- 3
2
votes
2 answers
Is there a way to use CTRL and SUPER key modifiers together in a key binding?
I would like to be able to use CTRL and SUPER key modifiers together in a key binding. Since I'm on Mac OSX I use Command key for SUPER modifier.
I tried this:
(global-set-key (kbd "C-s-i") 'move-line-up)
(global-set-key (kbd "C-s-k")…

Daut
- 31
- 5
1
vote
1 answer
lowercase `s` as prefix in `describe-bindings`
[MacOS, running 28.2 from emacsformacos.com]
When I do describe-bindings I see that the "Global Bindings" includes a bunch of bindings with the prefix s - not S for "Shift".
What is the s prefix?

davidbak
- 113
- 4
1
vote
1 answer
Can I fix Right Alt in console mode without needing to be root?
I am using MobaXterm on Windows 10 to access a remote Linux machine running RHEL 7.5, but this is generally applicable to Emacs (same things happen with PuTTY, for example). My connection is weak and I'm trying avoid using Moba's X server, so I'm…

Ajean
- 113
- 5
1
vote
1 answer
How to create/use extra modifier keys or get a similar functionality to modifier keys?
I want C-d to act as a kind of modifier for the and arrow keys in a similar way to how Shift is a modifier that allows letters to be capitalized.
Shift Analogy
When I press a I get a
When I hold Shift and then press a I get A
When I…

Nika
- 111
- 3
1
vote
1 answer
How to bind C-S-m and avoid S-RET?
I am trying to rebind kmacro-start-macro and kmacro-end-macro to C-m and C-S-m.
But I am having some issues because of C-m being equivalent to RET, the ASCII control character "carriage return".
In the answer to How to distinguish C-m from RETURN?…

nephewtom
- 2,219
- 17
- 29
1
vote
1 answer
Understanding emacs keys
I'm vim user and I've just started using emacs with evil. But one thing I'm finding really hard to understand is when do we use , etc. I want to understand when to use Control or Meta.
For example in vim, in normal mode d is the delete…

TheChetan
- 133
- 4
1
vote
1 answer
Can I use Right Alt/Ctrl Keys as Alt/Super/Hyper modifier keys of Emacs in Windows 10?
I noticed that I've rarely used Right Control Key and Right Alt Key in my keyboard, so I'm wondering if I can use them as Alt/Super/Hyper modifier key in Emacs.
Is such a thing possible in Windows 10?
Taking a look at `w32fns.c' seems right control…

dualism
- 304
- 1
- 6
1
vote
1 answer
Forward, backward etc sexp not working
I want to use the forward-sexp function in Emacs, which on my Spacemacs for Mac is bound to C-M-f.
Similarly for the backward-sexp. However, upon pressing C- for Control, and then the Meta key, which is the Escape key, I'm getting the following in…

zendevil.eth
- 151
- 2
1
vote
3 answers
Super-s: How to express it? Is some escaping needed in the syntax?
This code binds "Super-c" to lambda:
(global-set-key (kbd "s-c")
(lambda () (interactive) (jump-to-register 'q)))
How can I bind Super-s? They are both denoted as "s": (kbd "s-s"). I need to escape one of them somehow.
My Emacs version: GNU…

user4035
- 1,039
- 11
- 24
1
vote
1 answer
Capital A Meaning in Emacs Syntax?
I'm familiar with M being the modifier key in Emacs syntax but I'm reading the instructions for a package and it is telling me to prepend the modifier with A.
A-M-n
I've tried a few different things but I can't see to find what A is refering to…

Philip Kirkbride
- 557
- 5
- 14
0
votes
1 answer
How can I use additional modifiers with terminal Emacs on MacOS?
I currently have
(setq ns-function-modifier 'hyper)
and it works perfectly fine on my GUI Emacs on MacOS, but it becomes a problem in terminal emacs, where it doesn't recognize the key. I was wondering how to fix this or to have my own command…

user129393192
- 135
- 6
0
votes
1 answer
Is there a way to make the left alt key apply a sticky meta modifier?
I'm using vanilla emacs and since I'm using a nonstandard keyboard layout, I've used dual-function-keys to modify the left alt key so it sends left alt if it is tapped and right alt if it is held. I would like emacs to interpret the sent tapped left…

Alexander Praehauser
- 155
- 7
0
votes
2 answers
Right Control key problem when using Emacs remotely - Emacs thinks it's `C-M-`
I'm doing some remote work using Azure & Bastion to access a customer site. The problem is that in this context, with Emacs, my right Ctrl key doesn't work normally.
What it's doing instead is adding a ESC into the sequence when I press it, for…
0
votes
1 answer
How to just use macOS's command key?
Can one use macOS's Command Key (⌘) as a separate modifier key from ctrl and meta?
My specific question is, is it possible to use ⌘+Q to quit emacs without altering the existing keybindings? I have something like this in mind:
(bind-key "\⌘-q"…

Ryo
- 125
- 5