3 ms·
I was hoping someone would say that was possible. Thanks, I'll play around with the available yas-prompt-functions. As for SRecode, that looks interesting but
by pmoriarty 12y ago
I was hoping someone would say that was possible. Thanks, I'll play around with the available yas-prompt-functions.
As for SRecode, that looks interesting but its documentation is impenetrable. Someone seriously needs to write a bunch of tutorials for that thing. Otherwise, I can't really tell if it can do what xptemplate is capable of or not.
I found some comments from SRecode's author suggesting that it's intended for different uses from yasnippet:
"Thus, the audience for yasnippet and SRecode is quite different.
Of course you could do yasnippet like things with SRecode if someone
took the time to improve the field-editing feature in SRecode, but
that has not been my focus."[1]
[1] - http://emacs-fu.blogspot.com/2010/09/interview-with-eric-ludlam-cedet.html http://emacs-fu.blogspot.com/2010/09/interview-with-eric-lud...
- tuhdo 12y agoI agree Srecode needs to improve its documentation. It took me a while to learn to use it by reading the actual templates written that come with CEDET. I may write a tutorial for it at some point. But not now. You can have a look at a sample template: https://github.com/emacsmirror/cedet/blob/f72ebbc52785013280fddea8b6b1626ddd7ee6b4/etc/srecode/c.srt https://github.com/emacsmirror/cedet/blob/f72ebbc52785013280... . Srt file has syntax highlighting in Emacs.