* how to create c/c++ templates
@ 2008-04-16 12:20 Alain Muls
2008-04-16 12:55 ` Rebecca Breu
2008-04-16 16:48 ` Thierry Volpiatto
0 siblings, 2 replies; 4+ messages in thread
From: Alain Muls @ 2008-04-16 12:20 UTC (permalink / raw)
To: emacs list
[-- Attachment #1: Type: text/plain, Size: 392 bytes --]
Hello,
I use emacs/ecb for programming in C/C++.
I would like to have functions available that insert templates such as
the 'if .. then .. else' construct or a certain Qt function that I use
regularly. How can I do that, I am not used to program in lisp, so an
example should suffice.
I would also like to connect these templates to key-shortcuts.
Any help much appreciated
Tx/Alain
[-- Attachment #2: alain_muls.vcf --]
[-- Type: text/x-vcard, Size: 242 bytes --]
begin:vcard
fn:Alain Muls
n:Muls;Alain
org:RMA;CISS
adr:;;Renaissance Avenue 30;Brussems;;1000;Belgium
email;internet:alain.muls@telenet.be
title:Prof
tel;work:+32.2.7376340
tel;cell:+32.477.675091
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to create c/c++ templates
2008-04-16 12:20 how to create c/c++ templates Alain Muls
@ 2008-04-16 12:55 ` Rebecca Breu
2008-04-16 16:48 ` Thierry Volpiatto
1 sibling, 0 replies; 4+ messages in thread
From: Rebecca Breu @ 2008-04-16 12:55 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 216 bytes --]
Alain Muls <alain.muls@telenet.be> wrote:
> I would like to have functions available that insert templates such as
Have a look here:
http://www.emacswiki.org/cgi-bin/wiki/SkeletonMode
Yours,
Rebecca
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to create c/c++ templates
2008-04-16 12:20 how to create c/c++ templates Alain Muls
2008-04-16 12:55 ` Rebecca Breu
@ 2008-04-16 16:48 ` Thierry Volpiatto
2008-04-16 21:38 ` Peter Milliken
1 sibling, 1 reply; 4+ messages in thread
From: Thierry Volpiatto @ 2008-04-16 16:48 UTC (permalink / raw)
To: Alain Muls; +Cc: emacs list
Alain Muls <alain.muls@telenet.be> writes:
> Hello,
>
> I use emacs/ecb for programming in C/C++.
>
> I would like to have functions available that insert templates such as
> the 'if .. then .. else' construct or a certain Qt function that I use
> regularly. How can I do that, I am not used to program in lisp, so an
> example should suffice.
>
> I would also like to connect these templates to key-shortcuts.
>
> Any help much appreciated
>
> Tx/Alain
>
>
Hello, have a look at yasnippet.
http://code.google.com/p/yasnippet/
Work fine with python out of the box, should work also with C.
--
A + Thierry
Pub key: http://pgp.mit.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to create c/c++ templates
2008-04-16 16:48 ` Thierry Volpiatto
@ 2008-04-16 21:38 ` Peter Milliken
0 siblings, 0 replies; 4+ messages in thread
From: Peter Milliken @ 2008-04-16 21:38 UTC (permalink / raw)
To: Thierry Volpiatto; +Cc: emacs list, Alain Muls
[-- Attachment #1: Type: text/plain, Size: 963 bytes --]
Have a look at ELSE (Emacs Language Sensitive Editor) mode at:
http://home.exetel.com.au/peterm/
Does exactly what you want and (IMO :-)) easier to use than skeleton mode
etc
On Thu, Apr 17, 2008 at 2:48 AM, Thierry Volpiatto <
thierry.volpiatto@gmail.com> wrote:
> Alain Muls <alain.muls@telenet.be> writes:
>
> > Hello,
> >
> > I use emacs/ecb for programming in C/C++.
> >
> > I would like to have functions available that insert templates such as
> > the 'if .. then .. else' construct or a certain Qt function that I use
> > regularly. How can I do that, I am not used to program in lisp, so an
> > example should suffice.
> >
> > I would also like to connect these templates to key-shortcuts.
> >
> > Any help much appreciated
> >
> > Tx/Alain
> >
> >
> Hello, have a look at yasnippet.
>
> http://code.google.com/p/yasnippet/
>
> Work fine with python out of the box, should work also with C.
>
> --
> A + Thierry
> Pub key: http://pgp.mit.edu
>
>
>
[-- Attachment #2: Type: text/html, Size: 1630 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-16 21:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-16 12:20 how to create c/c++ templates Alain Muls
2008-04-16 12:55 ` Rebecca Breu
2008-04-16 16:48 ` Thierry Volpiatto
2008-04-16 21:38 ` Peter Milliken
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).