开发者

Drop-down menu for Emacs

开发者 https://www.devze.com 2023-03-24 17:15 出处:网络
When I am using yasnippet for a keyword that has more than one choices it opens up a new buffer instead of dropdown menu. How do I configure emacs to 开发者_运维技巧display a dropdown menu? Please see

When I am using yasnippet for a keyword that has more than one choices it opens up a new buffer instead of dropdown menu. How do I configure emacs to 开发者_运维技巧display a dropdown menu? Please see this cedet example for what I mean.


put yas-dropdown-prompt (or yas-x-prompt, if you want graphical menu like on cedet screenshots) at the first position in yas-prompt-functions variable, like this:

(require 'dropdown-list) ;; this is a separate package, that needs to be installed
(setq yas-prompt-functions
      '(yas-dropdown-prompt
        yas-ido-prompt
        yas-x-prompt
        yas-completing-prompt
        yas-no-prompt))
0

精彩评论

暂无评论...
验证码 换一张
取 消