Goal: I want to use the function indent-region with the default shortcut C–M–\.
Problem: I use a German keyboard layout. To insert “\” I have to type either C–M–ß or AltGr–ß, because the “ß” is overloaded with “?” and “\” (see: QWERTZ layout in the upper right corner).
Question: Is it possible to to input the shortcut C–M–\ without tweaking emacs or the OS on a German keyboard?
If it is not I would just change the shortcut to something easily accessible. The main reason I want this to work is that it works out of the box on a default emacs installation.
I’ve experienced this problem and found the following info helpful from the "Alt Gr Key" page on emacswiki.org:-
After experimenting on a German keyboard, I can execute
C-M-\like:AltGr+RCtrl+M+\, whereRCtrlis my right-Ctrl key,Mis my left/only Alt key and\is my ß?\ key. (The value ofw32-alt-is-metaist.)This key-chord is cumbersome so perhaps it’s better to define the
C-M-ßcombination as suggested by @OlegPavliv.