[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] function for inserting a block
From: |
Eric Abrahamsen |
Subject: |
Re: [O] function for inserting a block |
Date: |
Sat, 02 Sep 2017 20:34:34 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Kaushal Modi <address@hidden> writes:
> On Sat, Sep 2, 2017, 10:23 PM Adam Porter <address@hidden> wrote:
>
> Hi Eric,
>
> Thanks for doing this. I've had some similar code in my config for a
> while. I'll share some of it here in case you find it useful in doing
> this. You especially might find the org-read-structure-template
> function useful.
>
> And here's my version, which also uses hydra. But the function
> modi/org-template-expand to insert the BEGIN_../END_.. blocks can be reused.
>
> This at least tells that there's a good need to have the easy template do the
> right thing when it is called with a region selected.
That's the vast majority of what I wanted. So long as we've got that,
and it doesn't depend on random other packages, I'm happy.