Bind `to <S-dead-grave> in Emacs
What do I need to write in my .emacs file to associate the <S-dead-grave> command with the insertion of the ` (backtick) character.
I am running GNU Emacs 23.1.1 on Unix.
Reference Information. I run Unix through a shell that runs in Java (Oracle SGD) on a Windows terminal server. I do not have administrator access on any system. My keyboard is set to Norwegian. There seems to be some error in Java forcing it to act strangely with "dead" characters (for example, ` is on a Norwegian keyboard), and I was not able to get my administrator to fix it.
When I press ` followed by a space (as a way to insert this character with a keyboard layout) in Emacs, I get the error message <S-dead-grave> is undefined . Therefore, I believe that if I could determine this, I could get around this error.
In this setup, I am also pleased with the alternative workarounds.
Itβs not entirely clear to me whether you start Emacs in GUI mode or in text mode (in a terminal emulator), but based on your description of Emacs behavior, I assume that it starts in GUI mode (possibly through some X server on your Windows machine?).
It is strange that you get S-dead-grave events, so it could be a bug in your GUI environment (your X server configuration?).
But anyway
(global-set-key [S-dead-grave] "`") can help you solve the problem.
I had the same problem and this error reporting reports a solution:
XMODIFIERS= emacs I put it in my .bashrc after testing that it works (with XMODIFIERS= emacs && emacs )
This does not seem to be required with emacs 24.4, but I am using emacs 24.3.1 and still need it.