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

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

Re: Wrap predefined text around region


From: nospam
Subject: Re: Wrap predefined text around region
Date: Fri, 03 Dec 2010 06:59:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt)


Harry Putnam writes:

> 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.

Hi,

you could use http://www.davep.org/emacs/boxquote.el as a starting
point.

Cheers

Martin


reply via email to

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