emacs yasnippet展开一个列表


1

是否可以让yasnippet扩展到列表中。理想情况下,我想要一个项目列表,例如:

'((ERROR_FILE_NOT_FOUND "The file was not found")
  (ERROR_SERVER_CRASHED "Server has crashed"))

我想在扩展时将其传递给片段,以便我可以为每个列表项输出一段代码。目前我会用一些自定义列表代码做这种事情,但我只是好奇你是否可以用yasnippet来做。


我不明白这个问题。你想要输出什么?
ychaouche
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.