help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wrap predefined text around region


From: Harry Putnam
Subject: Wrap predefined text around region
Date: Thu, 02 Dec 2010 16:05:18 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt)

Can anyone show an example of how to do something like this:

I want to wrap this:

  # [HP 101202_15:55:07 
  # ] 

Around the selected text... 
   <selected text region here>
   <selected text region here>
   <selected text region here>
   <selected text region here>

that is, select some text and press a key
combo ... voila... its now surrounded by:
  # [HP 101202_15:55:07 

  # ] 

Over the yrs I've acquired a fairly lengthy .emacs mostly by theft
from more skilled people.  Coding something like that is clear out of
my skill set.

I use lots of `skeleton' things for inserting various predefined texts
but don't know how to make that happen to selected region.

Usually given an example, I've been able to hack it up to my needs.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]