diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-12-15 11:31:46 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-12-15 11:31:46 +0100 |
commit | f19dd70ece015509d52d0e9a7c113ccccad96e0e (patch) | |
tree | eebab916ce289db804fbfd752b0d542634a78ff0 /emacs.d/snippets/delphi-mode/func.yasnippet | |
parent | 776ec04db322b4a254c4a19a3c4f1dff73b86dd2 (diff) | |
download | dotfiles-f19dd70ece015509d52d0e9a7c113ccccad96e0e.tar.gz dotfiles-f19dd70ece015509d52d0e9a7c113ccccad96e0e.tar.xz dotfiles-f19dd70ece015509d52d0e9a7c113ccccad96e0e.zip |
added winring with ecb-compatibility, more delphi-mode improvments
Diffstat (limited to '')
-rw-r--r-- | emacs.d/snippets/delphi-mode/func.yasnippet | 3 |
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 |