Make yas-buffer-local-condition into a defcustom

* yasnippet.el (yas-not-string-or-comment-condition): New constant,
holding the previous default value of `yas-buffer-local-condition'.
(yas-buffer-local-condition): Make into defcustom.
This commit is contained in:
Noam Postavsky
2017-02-08 22:04:29 -05:00
parent 4f37afd493
commit 14819c931f
2 changed files with 23 additions and 4 deletions

View File

@@ -181,8 +181,9 @@ In particular, the following things matter:
- Buffer-local [[sym:yas-buffer-local-condition][=yas-buffer-local-condition=]] variable
This variable provides finer grained control over what snippets can
be expanded in the current buffer. You could disable snippet
expansion inside comments or string literals for example. See [[condition-system][the
be expanded in the current buffer. For example, the constant
[[sym:yas-not-string-or-comment-condition][=yas-not-string-or-comment-condition=]] has a value that disables
snippet expansion inside comments or string literals. See [[condition-system][the
condition system]] for more info.
** The condition system <<condition-system>>