From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pluskid Newsgroups: gmane.emacs.help Subject: YASnippet -- Yet another snippet extension (after smart-snippet) for Emacs Date: Tue, 11 Mar 2008 07:58:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205252465 2343 80.91.229.12 (11 Mar 2008 16:21:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Mar 2008 16:21:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 11 17:21:21 2008 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 1JZ7Dh-00053d-5T for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Mar 2008 17:20:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZ7D8-0003WV-MK for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Mar 2008 12:20:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s13g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: 60.191.99.15 Original-X-Trace: posting.google.com 1205247518 31711 127.0.0.1 (11 Mar 2008 14:58:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 11 Mar 2008 14:58:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s13g2000prd.googlegroups.com; posting-host=60.191.99.15; posting-account=XM60VwoAAACyVsWiq0n0ZlfvpY31oquP User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:156885 X-Mailman-Approved-At: Tue, 11 Mar 2008 12:19:21 -0400 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:52257 Archived-At: The project is at http://code.google.com/p/yasnippet/ This is a re-design and re-writing of my original extension smart- snippet. The goal is ease of use and full features. = Getting Started == For the busy or impatient people Watch the screencast at YouTube. Or download the higher resolution one. * http://www.youtube.com/watch?v=vOj7btx3ATg * http://yasnippet.googlecode.com/files/yasnippet.avi == For lazy people or beginner 1. Download yasnippet-bundle-x.y.z.el.tgz on the right sidebar and unpack it. 2. Save it to * One of the directories in your load-path. * Some arbitrary directory, e.g ~/.emacs.d/plugins and add this directory to your load-path, that is, add this to your ~/.emacs file. (add-to-list 'load-path "~/.emacs.d/plugins") 3. Require it in your ~/.emacs file: (require 'yasnippet-bundle) == For You 1. Download the latest yasnippet-x.y.z.tar.bz2 on the right sidebar. 2. Unpack it. 3. Add that directory to your load-path. 4. Require and initialize yasnippet in your ~/.emacs file: (require 'yasnippet) ;; not yasnippet-bundle (yas/initialize) (yas/load-directory "/path/to/the/snippets/directory/") 5. Optionally you can customize the snippets inside the snippets directory. 6. There's also a python script in tools directory to let you compile your customized snippets into a single stand-alone yasnippet- bundle file. == For geeks If you want to always follow the latest code. You can check out it from the svn repository: svn checkout http://yasnippet.googlecode.com/svn/trunk/ yasnippet