all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* yasnippet and friends: usefull ?
@ 2009-04-28  6:34 Xavier Maillard
  2009-04-28  8:05 ` Leo
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Xavier Maillard @ 2009-04-28  6:34 UTC (permalink / raw)
  To: help-gnu-emacs

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 ?

[not a flame, just curious]

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
  2009-04-28  6:34 Xavier Maillard
@ 2009-04-28  8:05 ` Leo
  2009-04-28 17:37 ` Ian Eure
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 16+ messages in thread
From: Leo @ 2009-04-28  8:05 UTC (permalink / raw)
  To: help-gnu-emacs

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.

> [not a flame, just curious]
>
> 	Xavier

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.

               www.git-scm.com
    git - the one true version control system





^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
  2009-04-28  6:34 Xavier Maillard
  2009-04-28  8:05 ` Leo
@ 2009-04-28 17:37 ` Ian Eure
  2009-04-29 18:07   ` Alberto Luaces
  2009-04-29 17:33 ` Nikolaj Schumacher
  2009-05-04  9:07 ` Mike Mattie
  3 siblings, 1 reply; 16+ messages in thread
From: Ian Eure @ 2009-04-28 17:37 UTC (permalink / raw)
  To: Xavier Maillard; +Cc: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
@ 2009-04-28 22:25 Xavier Maillard
  2009-04-29  0:49 ` Leo
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Xavier Maillard @ 2009-04-28 22:25 UTC (permalink / raw)
  To: Leo; +Cc: help-gnu-emacs


   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
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
  2009-04-28 22:25 yasnippet and friends: usefull ? Xavier Maillard
@ 2009-04-29  0:49 ` Leo
  2009-04-29  5:57 ` thierry.volpiatto
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 16+ messages in thread
From: Leo @ 2009-04-29  0:49 UTC (permalink / raw)
  To: help-gnu-emacs

On 2009-04-28 23:25 +0100, Xavier Maillard wrote:
>    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 ?

It is my attempt to revive snippet.el.
http://article.gmane.org/gmane.emacs.AUCTeX.general/3251

I'll add more features later on and release it.

When you define abbrevs you can use snippet features in them. For example,
I have 'ol' expand to

<ol>
<li>$$</li>$.
</ol>

snippet-region will be called to process the abbrev expansion.

> 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

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.

               www.git-scm.com
    git - the one true version control system





^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
  2009-04-28 22:25 yasnippet and friends: usefull ? Xavier Maillard
  2009-04-29  0:49 ` Leo
@ 2009-04-29  5:57 ` thierry.volpiatto
       [not found] ` <mailman.6228.1240985098.31690.help-gnu-emacs@gnu.org>
  2009-04-29 22:13 ` Ian Eure
  3 siblings, 0 replies; 16+ messages in thread
From: thierry.volpiatto @ 2009-04-29  5:57 UTC (permalink / raw)
  To: help-gnu-emacs

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.

Xavier Maillard <xma@gnu.org> 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





^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
       [not found] ` <mailman.6228.1240985098.31690.help-gnu-emacs@gnu.org>
@ 2009-04-29 11:08   ` Richard Riley
  2009-04-29 15:00     ` thierry.volpiatto
       [not found]     ` <mailman.6255.1241017689.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 16+ messages in thread
From: Richard Riley @ 2009-04-29 11:08 UTC (permalink / raw)
  To: help-gnu-emacs

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.

(also, the instructions for "else" talk about installing help files into
~/info which is wrong for most of us).

>
> Xavier Maillard <xma@gnu.org> 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

-- 


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
  2009-04-29 11:08   ` Richard Riley
@ 2009-04-29 15:00     ` thierry.volpiatto
  2009-05-02  6:18       ` thierry.volpiatto
       [not found]     ` <mailman.6255.1241017689.31690.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 16+ messages in thread
From: thierry.volpiatto @ 2009-04-29 15:00 UTC (permalink / raw)
  To: help-gnu-emacs

Richard Riley <rileyrgdev@googlemail.com> 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 <xma@gnu.org> 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





^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
       [not found]     ` <mailman.6255.1241017689.31690.help-gnu-emacs@gnu.org>
@ 2009-04-29 16:23       ` Richard Riley
  0 siblings, 0 replies; 16+ messages in thread
From: Richard Riley @ 2009-04-29 16:23 UTC (permalink / raw)
  To: help-gnu-emacs

thierry.volpiatto@gmail.com writes:

> Richard Riley <rileyrgdev@googlemail.com> 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")

Yes, which is why the instructions are, I think, wrong. I didn't see
that line. Mind you I constantly prove my ineptitude with info files. In
Debian there are dir files all over the shop and invariably make files
stick the info file in the wrong place..

>
>>>
>>> Xavier Maillard <xma@gnu.org> 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

-- 


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
  2009-04-28  6:34 Xavier Maillard
  2009-04-28  8:05 ` Leo
  2009-04-28 17:37 ` Ian Eure
@ 2009-04-29 17:33 ` Nikolaj Schumacher
  2009-05-04  9:07 ` Mike Mattie
  3 siblings, 0 replies; 16+ messages in thread
From: Nikolaj Schumacher @ 2009-04-29 17:33 UTC (permalink / raw)
  To: Xavier Maillard; +Cc: help-gnu-emacs

Xavier Maillard <xma@gnu.org> wrote:

> 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 ?

Can't they be used together?  I use tempo (or rather my snippets
version[1]), but not triggered by tab, but by abbrevs.


regards,
Nikolaj Schumacher

1: http://www.emacswiki.org/emacs-en/TempoSnippets




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
  2009-04-28 17:37 ` Ian Eure
@ 2009-04-29 18:07   ` Alberto Luaces
  0 siblings, 0 replies; 16+ messages in thread
From: Alberto Luaces @ 2009-04-29 18:07 UTC (permalink / raw)
  To: help-gnu-emacs

El Martes 28 Abril 2009ES 19:37:01 Ian Eure escribió:
> 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 
things like that, yasnippet is unvaluable.

Alberto




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
  2009-04-28 22:25 yasnippet and friends: usefull ? Xavier Maillard
                   ` (2 preceding siblings ...)
       [not found] ` <mailman.6228.1240985098.31690.help-gnu-emacs@gnu.org>
@ 2009-04-29 22:13 ` Ian Eure
  3 siblings, 0 replies; 16+ messages in thread
From: Ian Eure @ 2009-04-29 22:13 UTC (permalink / raw)
  To: Xavier Maillard; +Cc: help-gnu-emacs, Leo

On Apr 28, 2009, at 3:25 PM, Xavier Maillard wrote:

>
>   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 ;)
>
(setq yas/trigger-key (kbd "SPC"))

The other I prefer about yasnippet is that it will expand snippets  
containing non-word-constituent characters, which abbrev can't. So I  
can't have "@p" expand to "@param" with abbrev, but I can with  
yasnippet.

  - Ian




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
@ 2009-04-29 22:25 Xavier Maillard
  0 siblings, 0 replies; 16+ messages in thread
From: Xavier Maillard @ 2009-04-29 22:25 UTC (permalink / raw)
  To: Ian Eure; +Cc: help-gnu-emacs


   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.

Thank you for your feedback, it will help.

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
@ 2009-04-29 22:25 Xavier Maillard
  0 siblings, 0 replies; 16+ messages in thread
From: Xavier Maillard @ 2009-04-29 22:25 UTC (permalink / raw)
  To: thierry.volpiatto; +Cc: help-gnu-emacs


   Hi,
   NOTE:
   Instead of yasnippet, you can use also else-mode:

   http://www.emacswiki.org/emacs/ElseMode

   It's very well documented.

Tried it, abandonned. I am not sure I even understand how it
works. Templates are practically unreadable.

How do you use it exactly ? :D

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
  2009-04-29 15:00     ` thierry.volpiatto
@ 2009-05-02  6:18       ` thierry.volpiatto
  0 siblings, 0 replies; 16+ messages in thread
From: thierry.volpiatto @ 2009-05-02  6:18 UTC (permalink / raw)
  To: help-gnu-emacs

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 <module>
|     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 <rileyrgdev@googlemail.com> 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 <xma@gnu.org> 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





^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: yasnippet and friends: usefull ?
  2009-04-28  6:34 Xavier Maillard
                   ` (2 preceding siblings ...)
  2009-04-29 17:33 ` Nikolaj Schumacher
@ 2009-05-04  9:07 ` Mike Mattie
  3 siblings, 0 replies; 16+ messages in thread
From: Mike Mattie @ 2009-05-04  9:07 UTC (permalink / raw)
  To: Xavier Maillard; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]

On Tue, Apr 28, 2009 at 08:34:46AM +0200, 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 ?
> 
> [not a flame, just curious]
> 
> 	Xavier
> -- 
> http://www.gnu.org
> http://www.april.org
> http://www.lolica.org
> 
> 

I have overloaded my tab key to be sensitive to the overlays at
the point and to try various completion methods. I don't need
combos anymore, I simply type tab and it expands symbols,
corrects typos with flyspell, expands templates, moves to the
next template field, or indents a line according to the mode.

Yasnippet is very useful for me. I tried ELSE, but I found the
syntax to be difficult. I wrote a tool that translates from
XML template definitions to ELSE templates, but in the end I
ended up ditching it.

I do wish that yasnippet could handle template expansion within
template fields which ELSE implemented though.


-- 
GnuPG Key: B9012279 is available from HKP server pgp.mit.edu

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-05-04  9:07 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-28 22:25 yasnippet and friends: usefull ? Xavier Maillard
2009-04-29  0:49 ` Leo
2009-04-29  5:57 ` thierry.volpiatto
     [not found] ` <mailman.6228.1240985098.31690.help-gnu-emacs@gnu.org>
2009-04-29 11:08   ` Richard Riley
2009-04-29 15:00     ` thierry.volpiatto
2009-05-02  6:18       ` thierry.volpiatto
     [not found]     ` <mailman.6255.1241017689.31690.help-gnu-emacs@gnu.org>
2009-04-29 16:23       ` Richard Riley
2009-04-29 22:13 ` Ian Eure
  -- strict thread matches above, loose matches on Subject: below --
2009-04-29 22:25 Xavier Maillard
2009-04-29 22:25 Xavier Maillard
2009-04-28  6:34 Xavier Maillard
2009-04-28  8:05 ` Leo
2009-04-28 17:37 ` Ian Eure
2009-04-29 18:07   ` Alberto Luaces
2009-04-29 17:33 ` Nikolaj Schumacher
2009-05-04  9:07 ` Mike Mattie

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.