Bastien writes:
> (defun my-org-store-link-to-top-level-heading ()
> (interactive)
> (save-excursion
> (org-up-heading-all 10)
> (call-interactively 'org-store-link)))
Perfect. So simple with org-up-heading-all. Didn't find that. Thanks a
lot. Saves me so much time;)
--
Esben Stien
Hi Esben
Esben Stien writes:
> I'm trying to figure out how I can get a link to the top most heading
> without actually moving point up there and doing C-c C-l.
(defun my-org-store-link-to-top-level-heading ()
(interactive)
(save-excursion
(org-up-heading-all 10)
(call-interactively
Esben Stien writes:
> I'm trying to figure out how I can get a link to the top most heading
> without actually moving point up there and doing C-c C-l.
>
> Is there some function to do that?
>
> If I try using the function outline-previous-heading, how can I know
> when I've reached the top as it
I'm trying to figure out how I can get a link to the top most heading
without actually moving point up there and doing C-c C-l.
Is there some function to do that?
If I try using the function outline-previous-heading, how can I know
when I've reached the top as it seems to just bang its head in th