From 7a6bb0f05e349068b0a89514f1da33d6d7de30a9 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 24 Apr 2012 23:29:38 +0200 Subject: emacs.d/lisp/yasnippet: added yasnippet --- emacs.d/lisp/yasnippet/snippets/objc-mode/prop | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 emacs.d/lisp/yasnippet/snippets/objc-mode/prop (limited to 'emacs.d/lisp/yasnippet/snippets/objc-mode/prop') diff --git a/emacs.d/lisp/yasnippet/snippets/objc-mode/prop b/emacs.d/lisp/yasnippet/snippets/objc-mode/prop new file mode 100644 index 0000000..4d585db --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/objc-mode/prop @@ -0,0 +1,13 @@ +#name : foo { ... } ; setFoo { ... } +# -- +- (${1:id})${2:foo} +{ + return $2; +} + +- (void)set${2:$(capitalize text)}:($1)aValue +{ + [$2 autorelease]; + $2 = [aValue retain]; +} +$0 \ No newline at end of file -- cgit v1.2.3