Globally override key binding in Emacs

后端 未结 8 2153
栀梦
栀梦 2020-11-22 06:51

How can I set a key binding that globally overrides and takes precedence over all other bindings for that key? I want to override all major/minor mode maps and make sure my

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 07:28

    I don't think you can. That is roughly equivalent to saying that you want to define a global variable that cannot be hidden by local variable declarations in functions. Scope just doesn't work that way.

    However, there might be a way to write an elisp function to go through the mode list and reassign it in every single one for you.

提交回复
热议问题