I am typing with a German ISO keyboard that I've set to US English in X:
setxkbmap -layout us -model pc102
For entering German characters in Emacs, I do:
Some special characters are in unusual locations, but that's fine. All characters for writing texts are in the correct location, except for one, the single quote. If I type S-# on a German ISO keyboard, then instead I get
^, the caret.
How do I fix that?
PS: I know that I could change keyboard layouts using
setxkbmap and even toggle between several layouts. However, switching layout in Emacs seems at least interesting. I could of course define keyboard shortcuts to call
setxkbmap from within Emacs, and perhaps I'll do just that.