alfamadorian · 2022-06-05 22:28
I see that for GUI Emacs, we should use ucsc-insert (C-x 8 RET), but this is totally different than under xorg, where we use Control-Shift-u.
The reason I'm asking is because I have a Moonlander keyboard and I have some keys bound to xorg keyboard combinations for inputing unicode characters which I use often.
Would it be possible to define this, like (define-key global-map (kbd "C-S-u") 'insert-unicode-like-in-xorg) ?
_viz_ · 2022-06-06 02:48
If you are using Emacs 28, then checkout the compose input method and C-x \\.
xtifr · 2022-06-06 03:32
I don't have a direct answer to your question, but I would like to suggest that you look into the use of the [compose key](https://en.wikipedia.org/wiki/Compose_key) under xorg (or wayland). It's more limited, but allows easy, *intuitive* entry of *tons* of common unicode characters. It works just fine with Emacs, and doesn't require binding dozens of keys. Just one for the compose key itself. (I use caps lock, but plenty of other options are available.)
With the compose key, for example, entering 'ñ' simply requires pressing `compose`, then '`n`', then '`~`'. Most common diacritics (á, è, ï, ø, ŭ, etc.) and *lots* of extended punctuation and other symbols can easily be entered this way. And at *no* point do you need to know the actual numeric value of the character!
ieure · 2022-06-06 03:33
X11 is the layer through which GUI (well, X11 GUI) Emacs gets its events. So if control-shift-u makes X11 do accented character input, it'll work exactly the same with Emacs as any other X client.
**But**, I've been using X for like 25 years, and this is the first I've ever heard of such a thing as "control-shift-u." I suspect this is actually a feature of your DE or its toolkit, and not an X11 feature.
What you can do is set up a `Multi_key` (aka "Compose"), which is a really great system for entering accented characters. It's global and works fine with Emacs and any other X client.
LuckyNumber-Bot · 2022-06-06 03:33
All the numbers in your comment added up to 69. Congrats!
11
+ 11
+ 11
+ 25
+ 11
= 69
^([Click here](https://www.reddit.com/message/compose?to=LuckyNumber-Bot&subject=Stalk%20Me%20Pls&message=%2Fstalkme) to have me scan all your future comments.) \
^(Summon me on specific comments with u/LuckyNumber-Bot.)
BettaGeorge · 2022-06-06 10:22
Yeah, the C-S-u thing is something that Gnome (and possibly other WMs) copied from MS Windows. Not sure why they thought remembering five digit hexadecimal unicode numbers would be easier than explaining to users how a compose key works.