From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alberto Luaces Newsgroups: gmane.emacs.help Subject: Re: yasnippet and friends: usefull ? Date: Wed, 29 Apr 2009 20:07:13 +0200 Organization: UDC Message-ID: <200904292007.13606.aluaces@udc.es> References: <200904280634.n3S6YjgJ009308@zogzog.maillard.mobi> <05D178AB-6119-4412-A572-8DB8F591927B@digg.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1241028051 10294 80.91.229.12 (29 Apr 2009 18:00:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2009 18:00:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 29 20:00:42 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LzE5I-0006Uf-Ru for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Apr 2009 20:00:41 +0200 Original-Received: from localhost ([127.0.0.1]:56993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzE5I-0005FW-8u for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Apr 2009 14:00:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzE4s-0005FJ-61 for help-gnu-emacs@gnu.org; Wed, 29 Apr 2009 14:00:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzE4m-0005CY-FS for help-gnu-emacs@gnu.org; Wed, 29 Apr 2009 14:00:12 -0400 Original-Received: from [199.232.76.173] (port=40156 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzE4m-0005CU-36 for help-gnu-emacs@gnu.org; Wed, 29 Apr 2009 14:00:08 -0400 Original-Received: from smtpout2.correo.udc.es ([193.147.40.144]:35847) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LzE4l-0005He-L1 for help-gnu-emacs@gnu.org; Wed, 29 Apr 2009 14:00:07 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtpout2.correo.udc.es (Postfix) with ESMTP id 72F62EF53F for ; Wed, 29 Apr 2009 20:00:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at smtpout2.correo.udc.es Original-Received: from smtpout2.correo.udc.es ([127.0.0.1]) by localhost (smtpout2.correo.udc.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xbWF5aIt4IP0 for ; Wed, 29 Apr 2009 20:00:01 +0200 (CEST) Original-Received: from eps142.cdf.udc.es (eps142.cdf.udc.es [193.144.52.142]) by smtpout2.correo.udc.es (Postfix) with ESMTP id 81745EF55F for ; Wed, 29 Apr 2009 20:00:01 +0200 (CEST) User-Agent: KMail/1.9.9 In-Reply-To: <05D178AB-6119-4412-A572-8DB8F591927B@digg.com> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64106 Archived-At: El Martes 28 Abril 2009ES 19:37:01 Ian Eure escribi=F3: > On Apr 27, 2009, at 11:34 PM, Xavier Maillard wrote: > > Hi, > > > > I was revamping my $TMP directory and found on old archive of > > yasnippet. > > > > Does anybody is really using it ? I mean do you find easy to TAB > > everytime you are typing code ? How do you use it in real life ? > > Don't you think abbrev-* is easier and less intrusive ? > > Depends. For simple expansions, I prefer abbrev. Think: pub -> public, > pro -> protected, pri -> private, etc. > > For more complex templates, I use yasnippet. For example, new file > templates (where it's lisp evaluation is handy), class and function > templates with docblocks, etc. I use it to reduce the repetitious > parts of programming, and let me focus on getting things done. > > - Ian I agree completely. For templates like include guards, class creations and= =20 things like that, yasnippet is unvaluable. Alberto