On Fri, Jun 30, 2017 at 10:59 AM Michael Ax wrote: > when i paste blog content mixing text & code i usually want to wrap bits > of the paste in an org-structure-template. > > i do it by > - mark a region > - cut the region > - type - paste the region > > i would like to not cut and paste. > > any tips on advising or an advise for the org-structure-template expander? > i would like it to check the lossage and be smart about wrapping itself > around the stuff i mean. > I have been using this[1] for the last year and a half and it works pretty awesome. You would need to install the hydra package. The examples in the comments pretty much describes your use case. How to use the below: 1. Install the hydra package. 2. Evaluate the below code. 3. In an org buffer, select some text. 4. Press " (point) (mark)) (exchange-point-and-mark)) ;; Insert a newline if `beg' is *not* at beginning of the line. ;; Example: You have ^abc$ where ^ is bol and $ is eol. ;; "bc" is selected and