Closed jasonm23 closed 9 years ago
There's too much copy pasting, I don't like it.
Here's how I expect you to write it:
(defun aya-write-yasnippet ()
(interactive)
(let ((aya-insert-snippet-function
'aya-insert-snippet-function-extra))
(call-interactively 'aya-persist-snippet)))
You can add as many parameters to aya-insert-snippet-function-extra
as you want.
Back from vacation, I'll get this organised soon.
Let's kill this off, I think it's better as a separate package which depends on auto-snippet.
That way the intent of auto-yasnippet as a way to create temporary yasnippets isn't diluted.
I can also then build the feature however I feel like, since I think I'm the guy who actually wants it.
Good idea.
Note this is incomplete, README will need to be updated when the features are ratified.
I expect both have room to change and are separate commands in their own right.