I use yasnippet to insert some symbols (e.g., ✔), and I would like to do that in minibuffer too. When I press
TAB in minibuffer, it said " is undefined". How to define it to use yasnippet? Is it safe to do that?
After adding the following 3 lines of code, I can use my snippets defined in org-mode, by pressing
TAB inside minibuffer:
(add-hook 'minibuffer-setup-hook 'yas-minor-mode) (yas--define-parents 'minibuffer-inactive-mode '(org-mode)) (define-key minibuffer-local-map [tab] 'yas-expand)