From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: how to create c/c++ templates Date: Wed, 16 Apr 2008 18:48:06 +0200 Message-ID: <87wsmxkapl.fsf@thievol.homelinux.org> References: <4805EF1B.3090108@telenet.be> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208366262 22947 80.91.229.12 (16 Apr 2008 17:17:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 17:17:42 +0000 (UTC) Cc: emacs list To: Alain Muls Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 16 19:18:05 2008 connect(): Connection refused 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 1JmAoV-0003oH-4x for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Apr 2008 18:48:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmAnq-0002CQ-Im for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Apr 2008 12:48:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JmAna-0002C3-9Q for help-gnu-emacs@gnu.org; Wed, 16 Apr 2008 12:47:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JmAnX-0002Bo-Va for help-gnu-emacs@gnu.org; Wed, 16 Apr 2008 12:47:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmAnX-0002Bl-Op for help-gnu-emacs@gnu.org; Wed, 16 Apr 2008 12:47:51 -0400 Original-Received: from mu-out-0910.google.com ([209.85.134.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JmAnX-0005mN-Hv for help-gnu-emacs@gnu.org; Wed, 16 Apr 2008 12:47:51 -0400 Original-Received: by mu-out-0910.google.com with SMTP id w8so1088031mue.6 for ; Wed, 16 Apr 2008 09:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=tSZbTzV83ccV1uC32f+2OqixeKqkt1djoQ73ng/Hrdo=; b=on93bpqABDPLTOaDdCyNsr16YYPsu+hQ4mZeQH4ImUbkC7Cuv+k0OZU27E+YWD98QLjyFdG45fYhgg8Vh0VLJh6/VUUr2/UwDKOS0BPn2catStIMcpWCq7HXbNTlxDRjyo9o2C+DTskXJIq3f7gvwACgeo4ogCSJzu1ERrRAKI0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=Kj4ySKm6RS83Ix1OWqw7Ca0gFYHgLJLgIdZrZ2L/mvWACg2X1jBTS5OMa1Fqdkk4YPD/v9MtVP3blHf0LrKSZRg35FZhyk8RVGydtka2tEK26aFP5GWRQPg3d1hKjteHng4j9lK0UsuxGZNchz1x8I4tvpm+3NbmHZl5+0vAw60= Original-Received: by 10.82.171.16 with SMTP id t16mr331721bue.25.1208364465815; Wed, 16 Apr 2008 09:47:45 -0700 (PDT) Original-Received: from thievol.homelinux.org ( [79.85.211.126]) by mx.google.com with ESMTPS id y2sm32212651mug.9.2008.04.16.09.47.43 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Apr 2008 09:47:44 -0700 (PDT) In-Reply-To: <4805EF1B.3090108@telenet.be> (Alain Muls's message of "Wed, 16 Apr 2008 14:20:43 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:53337 Archived-At: Alain Muls 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