Emacs Key Binding Precedence

ぐ巨炮叔叔 提交于 2019-12-02 07:56:02

If they're both minor modes, then precedence is determined by the order of elements in minor-mode-map-alist which, unless explicitly manipulated, is simply determined by the order in which the libraries were loaded.

Ensure that autocomplete is loaded before yasnippet, and yasnippet's minor mode map would have precedence.

You could also use eval-after-load to adjust minor-mode-map-alist after loading autocomplete, to check for a yasnippet entry, and re-order the list if necessary.

(autocomplete may use other methods, though. A temporary overriding keymap would still have precedence over the minor mode maps, for instance.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!