all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Alain Muls <alain.muls@telenet.be>
Cc: emacs list <help-gnu-emacs@gnu.org>
Subject: Re: how to create c/c++ templates
Date: Wed, 16 Apr 2008 18:48:06 +0200	[thread overview]
Message-ID: <87wsmxkapl.fsf@thievol.homelinux.org> (raw)
In-Reply-To: <4805EF1B.3090108@telenet.be> (Alain Muls's message of "Wed, 16 Apr 2008 14:20:43 +0200")

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




  parent reply	other threads:[~2008-04-16 16:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2008-04-16 21:38   ` Peter Milliken

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wsmxkapl.fsf@thievol.homelinux.org \
    --to=thierry.volpiatto@gmail.com \
    --cc=alain.muls@telenet.be \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.