From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kal Newsgroups: gmane.emacs.help Subject: Re: Insert function descriptor Date: Sun, 06 Aug 2006 18:02:29 +0200 Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com Message-ID: <44d61294$0$6567$9a6e19ea@unlimited.newshosting.com> References: <44d32e5e$0$6406$9a6e19ea@unlimited.newshosting.com> <1154856088.255884.46660@75g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1154882435 8777 80.91.229.2 (6 Aug 2006 16:40:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Aug 2006 16:40:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 06 18:40:34 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G9lfq-0003SO-09 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Aug 2006 18:40:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G9lfp-0000oV-Il for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Aug 2006 12:40:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!post01.iad01!not-for-mail User-Agent: Thunderbird 1.5.0.5 (X11/20060728) Original-Newsgroups: gnu.emacs.help In-Reply-To: <1154856088.255884.46660@75g2000cwc.googlegroups.com> Original-Lines: 30 Original-X-Complaints-To: abuse@newshosting.com Original-Xref: shelby.stanford.edu gnu.emacs.help:140914 Original-To: help-gnu-emacs@gnu.org 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:36539 Archived-At: wenbinye@gmail.com a écrit : > maybe you can use skeleton to do it: > > (define-skeleton skeleton-c-mode-func-desc > "" nil > > "/* > ---------------------------------------------------------------------\n" > > (skeleton-read "Function name: ") "()\n" > > > "---------------------------------------------------------------------\n" > > "Description :\n" > > > "---------------------------------------------------------------------\n" > > "I :\n" > > "O :\n" > > > "--------------------------------------------------------------------- > */\n") > (define-abbrev-table 'c-mode-abbrev-table '( > ("funcx" "" skeleton-c-mode-func-desc 1) > )) > Thank you, it works like a charm. At the beginning, i've tried msf-abbrev but it need emacs 22, and I prefer to use a stable version. Regards, -- Kal