this post was submitted on 14 Nov 2023
1 points (100.0% liked)

Emacs

313 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

Hi. I'm getting really frustrated by how unpredictable `C-` mappings are when it's bound to both uppercase and lowercase character. What I've tried:

(global-set-key (kbd "C-q") 'cmd)
(global-set-key (kbd "C-Q" | "C-S-q" | "C-S-Q" | "C-\S-q" | "C-\S-Q" | ...) 'cmd-2)

and swapping the lines.

I never manage to get the intended behaviour – it keeps translating the uppercase to lowercase or vice-versa. And sometimes it doesn't – there seems to be no pattern.

Could someone help me out?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here