EmacsとVimで「dead_hook」をどのように再マップしますか?

EmacsとVimで「dead_hook」をどのように再マップしますか?

(いくつかの一般的なシンボル(例:と)を他のキー(例:または)で)キーボードベースラインに再マップしたいと思います。Alt Grjk

その組み合わせが印刷されるため、Alt Gr+を再マップkできます。)ĸAlt Gr+の問題は、jその組み合わせがデッドキーであることです。「輪がついています」そのため、シンボルを再マップすることはできません。

異なるコンピュータ間で移植可能な設定が必要なので、Xorgの設定/ファイルを変更したくありません。私はテキストエディタの設定だけに興味があります。

xevキーの組み合わせの出力は次のとおりです。

KeyPress event, serial 40, synthetic NO, window 0x5e00001,
    root 0x39a, subw 0x0, time 15760149, (170,-16), root:(170,36),
    state 0x10, keycode 66 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 40, synthetic NO, window 0x5e00001,
    root 0x39a, subw 0x0, time 15760673, (170,-16), root:(170,36),
    state 0x90, keycode 44 (keysym 0xfe61, dead_hook), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: True

KeyRelease event, serial 40, synthetic NO, window 0x5e00001,
    root 0x39a, subw 0x0, time 15760753, (170,-16), root:(170,36),
    state 0x90, keycode 44 (keysym 0xfe61, dead_hook), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x5e00001,
    root 0x39a, subw 0x0, time 15761115, (170,-16), root:(170,36),
    state 0x90, keycode 66 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

setxkbmap -layout "es" -option "lv3:caps_switch"キーボードの設定に使用します。

Emacsの場合:

(define-key key-translation-map (kbd "ĸ") (kbd ")"))

Wimの場合:

imap ĸ )

どんな助けでも歓迎します。

ベストアンサー1

おすすめ記事