all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Dziulko <dziulko@klaatu.canisius.edu>
Subject: Re: Two questions....
Date: Tue, 3 Jun 2003 08:10:47 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.44.0306030803590.11307-100000@klaatu.canisius.edu> (raw)
In-Reply-To: <8an0h0rvea.fsf@sm.intel.com>

I do this all the time.  I've put some standard company headers into files 
(header.c, header.pl, etc.) and then just use C-x i to insert the file at 
the current point.  This works well for pre-existing files.  You could 
also record a simple macro and bind it to a key.  I also use auto-insert 
so I can have standard templates for any new *.c or *.pl files I create, 
which will then automaticlly contain the standard headers.
 

On Mon, 2 Jun 2003, Balaji Venkataraman wrote:

> >>>>> "Kai" == Kai Großjohann <kai.grossjohann@gmx.net> writes:
> 
>     Kai> Urban Gabor <gabaux@freemail.hu> writes:
> 
>     >> 2. I generaly do C/C++ and Perl editing with emacs. It would be very
>     >> convenient to ha a generic macro, which insert an empty comment in
>     >> the code.  My problem is, that the formar of the comment is dependig
>     >> on the programming language (mode) you use. Is there a genereal
>     >> solution?
> 
>     Kai> I hit M-;.  (This is new in Emacs 21.)  -- This line is not blank.
> 
> If I understand Urban correctly, he wants to insert a new comment block -
> like say some header text - he does not want to know how to (un)comment
> existing lines etc.
> 
> Meaning if I'm in C mode I want to say "M-x insert-my-header" and it does
> 
> // Filename: 
> // Date started:
> 
> but in Perl mode it does
> 
> # Filename:
> # Date started:
> 
> At least that's what I've wished for a while. Thought I'd learn enough elisp
> to write a function to do that. But when is the question!
> 

  reply	other threads:[~2003-06-03 12:10 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7131.1054537809.21513.help-gnu-emacs@gnu.org>
2003-06-02  8:22 ` Two questions Holger Sparr
2003-06-02  8:25 ` Kai Großjohann
2003-06-02 22:01   ` Balaji Venkataraman
2003-06-03 12:10     ` Kevin Dziulko [this message]
2003-06-03 13:05     ` Rob Thorpe
2003-06-04 13:49       ` Pascal Bourguignon
2003-06-04 15:38         ` Stefan Monnier
2003-06-05 17:14     ` Kai Großjohann
2020-01-29 17:26 Perry Smith
2020-01-29 17:45 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2003-06-02  7:02 Urban Gabor
2002-09-09  7:54 Frank Winkler @home
2002-09-09  8:16 ` Peter Weiss, Sun Microsystems, Germany
2002-09-09 17:33   ` Frank Winkler @home
2002-09-09 22:53     ` Chuck Siska
     [not found]     ` <mailman.1031612047.20238.help-gnu-emacs@gnu.org>
2002-09-10  7:02       ` Frank Winkler @home
2002-09-10 12:09         ` Kai Großjohann
2002-09-10 13:10           ` Frank Winkler @home
2002-09-10 13:11           ` Frank Winkler @home
2002-09-10 13:23             ` Kai Großjohann
2002-09-10 13:56               ` Frank Winkler @home
2002-09-10  7:42     ` Peter Weiss, Sun Microsystems, Germany
2002-09-11 14:18       ` Frank Winkler @home
2002-09-11 16:01         ` kgold
2002-09-11 19:04           ` Frank Winkler @home
2002-09-11 20:02             ` Stefan Monnier <foo@acm.com>
2002-09-12  6:50               ` Frank Winkler @home
2002-09-12  7:06                 ` Miles Bader
     [not found]                 ` <mailman.1031814431.26390.help-gnu-emacs@gnu.org>
2002-09-12  7:39                   ` Frank Winkler @home
2002-09-12  7:51                   ` Frank Winkler @home
2002-09-12  9:01                     ` Miles Bader
     [not found]                     ` <mailman.1031821331.8438.help-gnu-emacs@gnu.org>
2002-09-12 10:42                       ` Frank Winkler @home
2002-09-12 11:48                         ` Kai Großjohann
2002-09-12 11:54                           ` Frank Winkler @home
2002-09-12 11:01             ` Kai Großjohann
2002-09-12 11:55               ` Frank Winkler @home
2002-09-11 17:42         ` Kai Großjohann
2002-09-11 19:32           ` Frank Winkler @home
2002-09-12  0:57         ` Jeff Mincy
2002-09-12  6:53           ` Frank Winkler @home
2002-09-12 10:13             ` Kai Großjohann
2002-09-12 10:29             ` Vivek Dasmohapatra

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=Pine.LNX.4.44.0306030803590.11307-100000@klaatu.canisius.edu \
    --to=dziulko@klaatu.canisius.edu \
    /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.