Alexey Mahotkin <alexm(a)hsys.msk.ru> writes:
(global-set-key [(Cyrillic_HARDSIGN)]
'(lambda ()
(interactive)
(insert "\xFF")))
Does this work:
(global-set-key 'Cyrillic_HardSIGN 'self-insert-command)
(put 'Cyrillic_HardSIGN 'ascii-value ?\xff)
If it works, it should also work with isearch and friends.
I think I'll try to implement
(set-xkb-cyrillic-charset "koi8-r") ;; also "iso8859-5" (default),
;; "windows-1251" and "cp866"
The name might be misleading because:
* AFAIK x_keysym_to_character is not xkb-specific.
* It uses the term `charset' which *looks* like it refers to Mule,
although the function has in fact nothing to do with Mule.
* Other charsets might require similar hacks.
How about:
(x-set-keysym-translation 'cyrillic 'koi8-r)
(x-set-keysym-translation 'latin-2 'windows-1250)
...