emacs mode-specific custom key bindings: local-set-key vs define-key

前端 未结 2 1755
广开言路
广开言路 2021-01-31 04:11

After a few years customizing my .emacs file, I find I used two different kinds of constructs to setup major-mode-specific key bindings:

1.

2条回答
  •  盖世英雄少女心
    2021-01-31 05:03

    I have lots of custom keyboard commands and I couldn't bother with various ways to set them in Emacs and all these keymaps overriding each other, so I just installed John Wiegley's bind-key as per my relevant answer.

    (require 'bind-key)
    (bind-key "C-l" 'goto-line)
    

提交回复
热议问题