View Poll Results: Yet another editor poll. Pick your favorite.
- Voters
- 32. You may not vote on this poll
-
emacs/xemacs
15 46.88% -
vi/vim
1 3.13% -
eclipse/spket
5 15.63% -
aptana
0 0% -
komodo
1 3.13% -
dreamweaver
0 0% -
IntelliJ
2 6.25% -
gedit
1 3.13% -
notepad++
3 9.38% -
other
4 12.50%
-
9 Dec 2009 3:36 PM #1
yasnippets -- yet another snippet extension for emacs
yasnippets -- yet another snippet extension for emacs
Is anyone using yasnippet for Ext development? I haven't been able to find yasnippets for Ext (or even javascript for that matter) and was about to write some of my own but didn't want to do it if someone else already has.
If no one has any I will start cranking out some templates and post them to this thread.
Anyone using emacs, I highly recommend checking out yasnippet, it puts a smile on my face while I code. They've put together a pretty sweet video here.
---------------------------------
updated snippets 12/11/09:
See attached
---------------------------------
updated snippets 12/23/09:
Most (all?) of them are working. Added a few more.Last edited by mitch_feaster; 23 Dec 2009 at 8:58 AM. Reason: newer version
-
10 Dec 2009 6:28 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 32
I would be interested just to know how many people actually use emacs for Web development. I know it's been around along time and has endured continued success
.
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
10 Dec 2009 9:15 AM #3
yep, and interesting to know how many are using terminal-only (instead of the fancy GUI from the video)...
-
10 Dec 2009 10:30 AM #4
I use both Emacs and yasnippet. I only have two Ext snippets (I use yas for PHP mostly).
I've included them below, and I'd love to see anything you come up with. Also, there's a python script somewhere for converting Textmate snippets to yasnippets, so if you come across any Ext Textmate snippets, those may be worth converting.
PHP Code:#contributor : Bryan P Johnson <bryan@12ftguru.com>
#name : Ext namespace ...
# --
Ext.namespace('$1');
$0
PHP Code:#contributor : Bryan P Johnson <bryan@12ftguru.com>
#name : Ext extend ...
# --
var $1 = function(config) {
config = config || {};
$0
Ext.apply(this, config);
$1.superclass.constructor.call(this);
}
Ext.extend($1, $2, {
});
Ext.reg('$3', $1);
-
10 Dec 2009 11:17 AM #5
Yeah I just found that this morning. I'm trying to convert some of Ed Spencer's TextMate Ext bundle now. The conversion script got most of it right but I'm hand-tweaking some of the others that didn't convert correctly. Thanks to Ed Spencer for these templates! I'll post my tweaked versions probably sometime today.
-
10 Dec 2009 11:27 AM #6Sencha - Community Support Team
- Join Date
- Nov 2008
- Location
- San Diego, Peoples' Republic of California
- Posts
- 2,047
- Vote Rating
- 11
-
10 Dec 2009 12:49 PM #7
Only Chuck Norris knows everything emacs is capable of doing.
-
10 Dec 2009 1:11 PM #8
Here are some of Ed Spencer's TextMate snippets converted using snippet-copier. I haven't tested a lot of them but the ones I tested either already worked perfectly or required some minor tweaking. I plan on just fixing them as I need them. If anyone else does the same feel free to post the fixes to this thread :-)
I put mine in mysnippets/espresso-mode
-
10 Dec 2009 1:16 PM #9
-
10 Dec 2009 3:45 PM #10


Reply With Quote