On Wed, Mar 12, 2014 at 5:15 AM, Thorsten Jolitz <tjol...@gmail.com> wrote:
> Matt Price <mopto...@gmail.com> writes:
>
>> is it possible to mark, not the current subtree, but one level up from
>> the current subtree?  I would like to add that level to the org
>> bindings for expand-region,
>>
>> https://github.com/magnars/expand-region.el/blob/master/the-org-mode-expansions.el
>
> you are probably looking for something more sophisticated, but this
> (untested) snippet should do the job when you are on a subheadline:
>
> #+begin_src emacs-lisp
>   (save-excursion
>     (org-up-element)
>     (org-mark-subtree)))
> #+end_src
>

Thanks Thorsten,

This is in fact almost exactly what I was looking for, but it seems
expand-region needs something rather more sophisticated, I'll get back
to the list when I have it figured out.  Thank you!

Matt

Reply via email to