比如我在prog-mode和rust-mode里面都有一个if
,在rust-mode中expand if
会弹出两个让我选。如何让yas直接选rust-mode的这个?
我直接把这个if下放到各个child mode了,也不麻烦
(defcustom yas-prompt-functions '(yas-dropdown-prompt
yas-completing-prompt
yas-maybe-ido-prompt
yas-no-prompt)
1 个赞
解决方案给你了,不过严格来说你这个不是解决方案,方案是(setq yas-prompt-functions '(yas-no-prompt))