From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: thierry.volpiatto@gmail.com Newsgroups: gmane.emacs.help Subject: Re: yasnippet and friends: usefull ? Date: Sat, 02 May 2009 08:18:52 +0200 Message-ID: <877i10do37.fsf@tux.homenetwork> References: <200904282225.n3SMP36j017386@zogzog.maillard.mobi> <87tz47sdwd.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1241245601 29169 80.91.229.12 (2 May 2009 06:26:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 May 2009 06:26:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 02 08:26:31 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 1M08gB-0002ms-8s for geh-help-gnu-emacs@m.gmane.org; Sat, 02 May 2009 08:26:31 +0200 Original-Received: from localhost ([127.0.0.1]:51600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M08gA-00036h-MV for geh-help-gnu-emacs@m.gmane.org; Sat, 02 May 2009 02:26:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M08fo-00036Z-Uw for help-gnu-emacs@gnu.org; Sat, 02 May 2009 02:26:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M08fj-000369-Bd for help-gnu-emacs@gnu.org; Sat, 02 May 2009 02:26:07 -0400 Original-Received: from [199.232.76.173] (port=40711 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M08fj-000366-2k for help-gnu-emacs@gnu.org; Sat, 02 May 2009 02:26:03 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:59440) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M08fi-0006OX-CX for help-gnu-emacs@gnu.org; Sat, 02 May 2009 02:26:02 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M08ff-0000Yr-PH for help-gnu-emacs@gnu.org; Sat, 02 May 2009 02:26:00 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M08fY-0001FC-0Q for help-gnu-emacs@gnu.org; Sat, 02 May 2009 06:25:52 +0000 Original-Received: from 138.211.85-79.rev.gaoland.net ([79.85.211.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 02 May 2009 06:25:52 +0000 Original-Received: from thierry.volpiatto by 138.211.85-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 02 May 2009 06:25:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 98 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 138.211.85-79.rev.gaoland.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHAwNfJRBVTESlTym0 RB/OwKFivhZqAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABeElE QVQ4y3VTW47CMAyMwwUyTfYfUvG/wfC/ET4B0t7/KmsHurRgXFVVPRm/xglhsRj2+npW98G3+Amp tS5BXxl3SqzcXGRuEyf7n5lPA9jXetNPRhE7EJkzfz8YWnIgBSwW95TK4H79/t4GINKNADWj4PgA DiJX/ZxFDzDXeb4oYMw7kNUvyMzcaj3ioICG4hCKEShkPpwQ49Q05nnkGAQLDFDdExjm0qpowBYA Wi61bDlFU1GW0WbY2dSJYX5ZD2S0AiZL+rPyE19TpMzP2IvNWly+NkuWNgD4pO2oL73IQXoSyVX2 NHna7tgadWRXoCdvf2guqEcvGHqZwE520iRD0/QCYiiTE+U21w1Qxvg6iSp9fbIiDCnSAelDkCVF Vn+HekqXzRybwJ40xF4DMRG6SWGK9G1lYzHSxLYEm05GWbpJCB6A9tb9A3BGn2XdwJbS/WuInj74 4QNF8sVFdP3vl+5tgYp4Ev7fyrfFMkXgElDgV4uV/w8TWEeLCIGJ/AAAACV0RVh0Y3JlYXRlLWRh dGUAMjAwOC0wNS0zMVQyMDoxNDoyMiswMDowMAS7YjIAAAARdEVYdGpwZWc6Y29sb3JzcGFjZQAy LHVVnwAAACB0RVh0anBlZzpzYW1wbGluZy1mYWN0b3IAMngyLDF4MSwxeDFJ+qa0AAAAJXRFWHRt b2RpZnktZGF0ZQAyMDA3LTEwLTI4VDE2OjA4OjQ4KzAwOjAw44nspgAAAABJRU5ErkJggg== User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.92 (gnu/linux) Cancel-Lock: sha1:NGVOD6A28jcFj/t2OnRiq/rsXZg= X-detected-kernel: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:64138 Archived-At: There is a little bug in else-mode: If you add else-mode to python-mode-hook, when creating a new .py file, "{compilation_unit}" is inserted in the file. That is not annoying for most files, just delete it and keep writing in your python file. But that's create an error when installing python program with a setup.py: ,---- | Traceback (most recent call last): | File "/usr/local/bin/calendar-bin.py", line 31, in | from calendar_tk.calendar_multiclass import * | File "/usr/lib/python2.6/site-packages/calendar_tk/__init__.py", line 1 | {compilation_unit} `---- __init__.py should be empty here. thierry.volpiatto@gmail.com writes: > Richard Riley writes: > >> thierry.volpiatto@gmail.com writes: >> >>> Hi, >>> NOTE: >>> Instead of yasnippet, you can use also else-mode: >>> >>> http://www.emacswiki.org/emacs/ElseMode >>> >>> It's very well documented. >>> >>> I prefer it than yasnippet. >> >> Just as an aside noticing it's not hosted on the wiki (it would be nice >> if it was), Andy Stewart wrote a great utility suite for accessing >> emacs wiki code : see >> >> http://www.emacswiki.org/emacs/AutoInstall >> >> ,---- >> | 1. Find the Elisp file. Locate it on the web, either from a private site, or from a code repository such as the EmacsWiki ElispArea or gist. >> | 2. Asynchronous parallel download the file. >> | 3. Batch install files Some extension (such as Icicles) have many packages need install, and install those packages one by one is painful. >> | 4. View differences with the old version. Sometimes, you’ll want to view the differences between the new and old versions before you update. >> | 5. Save the Elisp file. You might keep your elisp files organized by categories, but this causes its own problems: if you download a new elisp file, you need to make sure you’re deleting the old one, a hassle if the file is located deep in a storage directory. >> | 6. Install the Elisp file. >> | 7. Keep the Elisp file updated. >> `---- >> >> It has saved me a lot of time - especially with the "update" feature. > > Yes it's nice, i use it also. > >> (also, the instructions for "else" talk about installing help files into >> ~/info which is wrong for most of us). > > For me it's in ~/elisp/info (but it can be anywhere else), > you have just to write this line > > ,---- > | * ELSE: (else). Emacs Language Sensitive Editor mode. > `---- > > in your dir file. > > and also in .emacs: > > (add-to-list 'Info-default-directory-list "/home/you/elisp/info") > >>> >>> Xavier Maillard writes: >>> >>>> On 2009-04-28 07:34 +0100, 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 ? >>>> >>>> I use a modified snippet.el that integrates into abbrev seamlessly. I >>>> like it better than yasnippet. >>>> >>>> Why ? Is it available somewhere ? How do you practically use it ? >>>> Along my previous post, I decided to try yasnippet. It is nice >>>> but you have to remember what is the "combo trigger" to use in >>>> order to have it does something ;) >>>> >>>> regards >>>> >>>> Xavier -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France