From dd3dff6eebcd8fb14d8ba9b0666365bea62e5d81 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 3 Feb 2016 21:53:13 +0100 Subject: Add own snippets --- snippets/delphi-mode/procedure.yasnippet | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 snippets/delphi-mode/procedure.yasnippet (limited to 'snippets/delphi-mode/procedure.yasnippet') diff --git a/snippets/delphi-mode/procedure.yasnippet b/snippets/delphi-mode/procedure.yasnippet new file mode 100644 index 0000000..6039ad8 --- /dev/null +++ b/snippets/delphi-mode/procedure.yasnippet @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: Alexander Sulfrian +# name: procedure +# key: proc +# condition: (not (delphi-in-class-definition)) +# -- +procedure ${1:$$(yas/choose-value (let (value) (dolist (element (delphi-get-classes) value) (setq value (cons (concat element ".") value)))))}${2:Name$(upcase-initials text)}($3); +begin +$0 +end; \ No newline at end of file -- cgit v1.2.3