From 33a07c35442e82ffafe685e5ade0959e48311da8 Mon Sep 17 00:00:00 2001 From: Joao Tavora Date: Wed, 23 May 2012 11:46:36 +0100 Subject: [PATCH] enhancement: nicer `yas/new-snippet\' template --- yasnippet.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yasnippet.el b/yasnippet.el index 305cae9..a950698 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -2341,7 +2341,7 @@ NO-TEMPLATE is non-nil." (unless no-template (yas/expand-snippet "\ # -*- mode: snippet -*- # name: $1 -# key: $2${3: +# key: ${2:${1:$(replace-regexp-in-string \"\\\\\\\\(\\\\\\\\w+\\\\\\\\).*\" \"\\\\\\\\1\" yas/text)}}${3: # binding: ${4:direct-keybinding}}${5: # expand-env: ((${6:some-var} ${7:some-value}))}${8: # type: command}