Create "in-snippet" predicate
Closed this issue · 1 comments
brandonw commented
Create a predicate that allows user to see whether or not they are currently in a snippet. This would help with configuring other modes to disable themselves (or enable themselves) in the event that the user is currently inside of a snippet.
My primary motivation would be something like the following:
(defadvice ac-expand (before advice-for-ac-expand activate)
(when (yas-in-snippet-p)
(ac-stop))```
Which would allow you to disable autocompletion if inside a snippet.
brandonw commented
Whoops, wrong repository.