From: Paolo Gianrossi <paolino.gnu@disi.unige.it>
Subject: Re: inserting comment headings
Date: Mon, 19 Jan 2004 23:28:44 GMT [thread overview]
Message-ID: <20040120002847.1ed89336.paolino.gnu@disi.unige.it> (raw)
In-Reply-To: m3isj7sg16.fsf@pdrechsler.fqdn.th-h.de
On Mon, 19 Jan 2004 23:57:25 +0100
Patrick Drechsler <patrick.drechsler@gmx.net> wrote:
>
> Kevin Rodgers wrote on 19 Jan 2004 23:38:33 MET:
>
> > Patrick Drechsler wrote:
> >
> >> Tim X. wrote on 19 Jan 2004 09:35:45 MET:
>
> [...]
>
> >> [...M-;, M-j...]
> >> Thanks for the answers, I already use these commands
> >> frequently. But this is not quit what I was looking for.
> >> I wanted to include the `-----------------' stuff after the
> >> comment automatically:
> >> ;;* comment -----------------------------------------------
> >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >> Any ideas?
> >
> >
> > (defun insert-comment-heading (comment)
> > "Insert COMMENT, preceded by \";;* \" and followed by \" ---...\"."
> > (interactive "sComment: ")
> > (insert ";;* " comment " " (make-string (- (window-width)
> > (+ (length comment) 5)
> > 1)
> > ?-))
> > (newline))
>
> Cool! Thank you very much Kevin!
>
> Now I just have to figure out how to let this function detect the
> mode emacs is in. But I'll go ahead and try that on my own.
don't want to spoil your research :) but you might not need that... each mode defines comments... Won't say more if you don't ask, you might be having fun with this...
cheers
paolino
next prev parent reply other threads:[~2004-01-19 23:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-19 0:13 inserting comment headings Patrick Drechsler
2004-01-19 4:32 ` leo
2004-01-19 8:35 ` Tim X
2004-01-19 9:04 ` Patrick Drechsler
2004-01-19 17:21 ` Martin Stemplinger
2004-01-19 18:12 ` Patrick Drechsler
2004-01-20 22:59 ` Martin Stemplinger
2004-01-19 22:00 ` Tim X
2004-01-19 22:18 ` Patrick Drechsler
2004-01-19 22:38 ` Kevin Rodgers
2004-01-19 22:57 ` Patrick Drechsler
2004-01-19 23:28 ` Paolo Gianrossi [this message]
2004-01-20 6:36 ` Brad Collins
[not found] ` <mailman.971.1074580719.928.help-gnu-emacs@gnu.org>
2004-01-20 8:33 ` Sean Richards
2004-01-20 12:46 ` Paolo Gianrossi
2004-01-20 17:58 ` Patrick Drechsler
2004-01-20 17:02 ` Stefan Monnier
[not found] ` <q7uwu7esh4f.fsf@hw1371.wdf.sap.corp>
2004-01-26 19:51 ` Patrick Drechsler
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=20040120002847.1ed89336.paolino.gnu@disi.unige.it \
--to=paolino.gnu@disi.unige.it \
/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).