Re: [O] Link to Top Most Heading

2014-06-25 Thread Esben Stien
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

Re: [O] Link to Top Most Heading

2014-06-25 Thread Bastien
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

Re: [O] Link to Top Most Heading

2014-06-16 Thread Thorsten Jolitz
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

[O] Link to Top Most Heading

2014-06-15 Thread Esben Stien
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