unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kal <kalounet@gmail.com>
Subject: Re: Insert function descriptor
Date: Sun, 06 Aug 2006 18:02:29 +0200	[thread overview]
Message-ID: <44d61294$0$6567$9a6e19ea@unlimited.newshosting.com> (raw)
In-Reply-To: <1154856088.255884.46660@75g2000cwc.googlegroups.com>

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

      reply	other threads:[~2006-08-06 16:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-04 11:24 Insert function descriptor Kal
2006-08-06  9:21 ` wenbinye
2006-08-06 16:02   ` Kal [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='44d61294$0$6567$9a6e19ea@unlimited.newshosting.com' \
    --to=kalounet@gmail.com \
    /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.
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).