No more Yasnippet pop-up menus
Yasnippet is great but for snippets with multiple hits I really don’t like pop-up menus so I use this instead:
1 2 3 4 5 6 7 8 |
(setq yas/window-system-popup-function
(setq yas/text-popup-function
(lambda (templates)
(ido-completing-read "snippet: "
(mapcar (lambda (i)
(yas/template-name
(cdr i)))
templates))))))
|
If you don’t like ido (though “flex matching” was made for this sort of thing) then just replace ido-completing-read with completing-read and you’re good to go.
blog comments powered by Disqus