emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] mark parent of current heading


From: Matt Price
Subject: Re: [O] mark parent of current heading
Date: Thu, 13 Mar 2014 13:58:07 -0400

On Wed, Mar 12, 2014 at 5:15 AM, Thorsten Jolitz <address@hidden> wrote:
> Matt Price <address@hidden> 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

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