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: Thorsten Jolitz
Subject: Re: [O] mark parent of current heading
Date: Wed, 12 Mar 2014 10:15:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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

-- 
cheers,
Thorsten




reply via email to

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