From bb0908ad0031fb070306a231d277a3c722890915 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 10 Dec 2009 06:23:45 +0100 Subject: added delphi stuff added templet for ultrastar .pas files added some delphi snippets for procedures and functions added imenu stuff for delphi-code --- emacs.d/snippets/delphi-mode/func-prototype.yasnippet | 9 +++++++++ emacs.d/snippets/delphi-mode/func.yasnippet | 11 +++++++++++ emacs.d/snippets/delphi-mode/procedure-prototype.yasnippet | 9 +++++++++ emacs.d/snippets/delphi-mode/procedure.yasnippet | 11 +++++++++++ 4 files changed, 40 insertions(+) create mode 100644 emacs.d/snippets/delphi-mode/func-prototype.yasnippet create mode 100644 emacs.d/snippets/delphi-mode/func.yasnippet create mode 100644 emacs.d/snippets/delphi-mode/procedure-prototype.yasnippet create mode 100644 emacs.d/snippets/delphi-mode/procedure.yasnippet (limited to 'emacs.d/snippets/delphi-mode') diff --git a/emacs.d/snippets/delphi-mode/func-prototype.yasnippet b/emacs.d/snippets/delphi-mode/func-prototype.yasnippet new file mode 100644 index 0000000..25f06bb --- /dev/null +++ b/emacs.d/snippets/delphi-mode/func-prototype.yasnippet @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# contributor: Alexander Sulfrian +# name: function prototype +# key: func +# condition: (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; +$0 \ No newline at end of file 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 +# 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 diff --git a/emacs.d/snippets/delphi-mode/procedure-prototype.yasnippet b/emacs.d/snippets/delphi-mode/procedure-prototype.yasnippet new file mode 100644 index 0000000..ee5b101 --- /dev/null +++ b/emacs.d/snippets/delphi-mode/procedure-prototype.yasnippet @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# contributor: Alexander Sulfrian +# name: procedure prototype +# key: proc +# condition: (delphi-in-class-definition) +# expand-env: ((yas/indent-line 'auto) (yas/wrap-around-region 'nil) (yas/also-auto-indent-first-line 't)) +# -- +procedure ${1:Name$(capitalize text)}($2); +$0 \ No newline at end of file diff --git a/emacs.d/snippets/delphi-mode/procedure.yasnippet b/emacs.d/snippets/delphi-mode/procedure.yasnippet new file mode 100644 index 0000000..8834d8c --- /dev/null +++ b/emacs.d/snippets/delphi-mode/procedure.yasnippet @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# contributor: Alexander Sulfrian +# name: procedure +# key: proc +# condition: (not (delphi-in-class-definition)) +# expand-env: ((yas/indent-line 'auto) (yas/wrap-around-region 'nil) (yas/also-auto-indent-first-line 't)) +# -- +procedure ${1:Name$(capitalize text)}($2); +begin +$0 +end; \ No newline at end of file -- cgit v1.2.3