--text follows this line-- Hi everyone, First contribution to emacs. This comes from the fact that I have a custom function that overrides auto-insert to fit my needs and I realised it was not a big change and could be merged into emacs directly. This small patch aims to allow any function acting as a predicate with no arguments to be used as a condition in auto-insert-alist