summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets/delphi-mode/func.yasnippet
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/snippets/delphi-mode/func.yasnippet')
-rw-r--r--emacs.d/snippets/delphi-mode/func.yasnippet11
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs.d/snippets/delphi-mode/func.yasnippet b/emacs.d/snippets/delphi-mode/func.yasnippet
new file mode 100644
index 0000000..dc38597
--- /dev/null
+++ b/emacs.d/snippets/delphi-mode/func.yasnippet
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# contributor: Alexander Sulfrian <alexander@sulfrian.net>
+# name: function
+# key: func
+# condition: (not (delphi-in-class-definition))
+# expand-env: ((yas/indent-line 'auto) (yas/wrap-around-region 'nil) (yas/also-auto-indent-first-line 't))
+# --
+function ${1:Name$(capitalize text)}($2): $3;
+begin
+$0
+end; \ No newline at end of file