Snippet mode to defun snippet