summaryrefslogtreecommitdiffstats
path: root/emacs.d
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d')
-rw-r--r--emacs.d/snippets/delphi-mode/func-prototype.yasnippet9
-rw-r--r--emacs.d/snippets/delphi-mode/func.yasnippet11
-rw-r--r--emacs.d/snippets/delphi-mode/procedure-prototype.yasnippet9
-rw-r--r--emacs.d/snippets/delphi-mode/procedure.yasnippet11
-rw-r--r--emacs.d/templates/TEMPLATE.pas.tpl38
5 files changed, 78 insertions, 0 deletions
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 <alexander@sulfrian.net>
+# 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 <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
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 <alexander@sulfrian.net>
+# 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 <alexander@sulfrian.net>
+# 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
diff --git a/emacs.d/templates/TEMPLATE.pas.tpl b/emacs.d/templates/TEMPLATE.pas.tpl
new file mode 100644
index 0000000..72f8752
--- /dev/null
+++ b/emacs.d/templates/TEMPLATE.pas.tpl
@@ -0,0 +1,38 @@
+{* UltraStar Deluxe - Karaoke Game
+ *
+ * UltraStar Deluxe is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *}
+
+unit (>>>POINT<<<);
+
+{$IFDEF FPC}
+ {$MODE Delphi}
+{$ENDIF}
+
+{$I switches.inc}
+
+interface
+
+implementation
+
+end.