From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Eure Newsgroups: gmane.emacs.help Subject: Re: yasnippet and friends: usefull ? Date: Tue, 28 Apr 2009 10:37:01 -0700 Message-ID: <05D178AB-6119-4412-A572-8DB8F591927B@digg.com> References: <200904280634.n3S6YjgJ009308@zogzog.maillard.mobi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240940293 4033 80.91.229.12 (28 Apr 2009 17:38:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Apr 2009 17:38:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Xavier Maillard Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 28 19:38:04 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 1LyrFr-0000iS-IA for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Apr 2009 19:38:03 +0200 Original-Received: from localhost ([127.0.0.1]:44637 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyrFq-0000Wo-PR for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Apr 2009 13:38:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LyrEy-0000Kc-Vb for help-gnu-emacs@gnu.org; Tue, 28 Apr 2009 13:37:09 -0400 Original-Received: from [199.232.76.173] (port=53999 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyrEy-0000KF-It for help-gnu-emacs@gnu.org; Tue, 28 Apr 2009 13:37:08 -0400 Original-Received: from mail.digg.com ([64.191.203.36]:41829) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LyrEy-0004n0-85; Tue, 28 Apr 2009 13:37:08 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id 279F6A84F31; Tue, 28 Apr 2009 10:37:04 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Score: -4.434 Original-Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bbT+g8vUx-x7; Tue, 28 Apr 2009 10:37:02 -0700 (PDT) Original-Received: from [10.2.16.50] (diggstage01.digg.com [64.191.203.34]) by mail.digg.com (Postfix) with ESMTP id 4B077A84F33; Tue, 28 Apr 2009 10:37:02 -0700 (PDT) In-Reply-To: <200904280634.n3S6YjgJ009308@zogzog.maillard.mobi> X-Mailer: Apple Mail (2.930.3) 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:64082 Archived-At: 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