summaryrefslogtreecommitdiffstats
path: root/snippets/delphi-mode/procedure.yasnippet
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2016-02-03 21:53:13 +0100
committerAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2016-02-03 21:53:13 +0100
commitdd3dff6eebcd8fb14d8ba9b0666365bea62e5d81 (patch)
tree15344c68c599cef88689ea5e36c584a4fe2534d9 /snippets/delphi-mode/procedure.yasnippet
parent3f5edbfe13f4bca10274e0999376502fa9ed346d (diff)
downloademacs-dd3dff6eebcd8fb14d8ba9b0666365bea62e5d81.tar.gz
emacs-dd3dff6eebcd8fb14d8ba9b0666365bea62e5d81.tar.xz
emacs-dd3dff6eebcd8fb14d8ba9b0666365bea62e5d81.zip
Add own snippets
Diffstat (limited to 'snippets/delphi-mode/procedure.yasnippet')
-rw-r--r--snippets/delphi-mode/procedure.yasnippet10
1 files changed, 10 insertions, 0 deletions
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 <alexander@sulfrian.net>
+# 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