From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Link to Top Most Heading Date: Wed, 25 Jun 2014 11:32:05 +0200 Message-ID: <87d2dxjpwq.fsf@bzg.ath.cx> References: <87ha3lzk53.fsf@quasar.esben-stien.name> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzjYt-0007sU-0L for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 05:32:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzjYn-0006Ux-1x for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 05:32:14 -0400 Received: from mail-s76.mailgun.info ([184.173.153.204]:46485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzjYm-0006So-VV for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 05:32:09 -0400 In-Reply-To: <87ha3lzk53.fsf@quasar.esben-stien.name> (Esben Stien's message of "Mon, 16 Jun 2014 04:02:48 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Esben Stien Cc: emacs-orgmode@gnu.org 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 'org-store-link))) HTH, -- Bastien