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.yasnippet3
1 files changed, 1 insertions, 2 deletions
diff --git a/emacs.d/snippets/delphi-mode/func.yasnippet b/emacs.d/snippets/delphi-mode/func.yasnippet
index dc38597..a42a598 100644
--- a/emacs.d/snippets/delphi-mode/func.yasnippet
+++ b/emacs.d/snippets/delphi-mode/func.yasnippet
@@ -3,9 +3,8 @@
# 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;
+function ${1:$$(yas/choose-value (let (value) (dolist (element (delphi-get-classes) value) (setq value (cons (concat element ".") value)))))}${2:Name$(capitalize text)}($3): $4;
begin
$0
end; \ No newline at end of file