From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Breadcrumbs? Date: Tue, 25 Sep 2012 02:59:57 +0200 Message-ID: <87lifysyr6.fsf@bzg.ath.cx> References: <21A5E1E970CD46459ECBE86D6CC4B28C676DD94D@spexch01.WindLogics.local> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGJVE-0002FL-7M for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 20:59:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGJVC-0003Em-9y for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 20:59:56 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:44939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGJVC-0003Eg-3a for emacs-orgmode@gnu.org; Mon, 24 Sep 2012 20:59:54 -0400 Received: by wibhq4 with SMTP id hq4so4729143wib.12 for ; Mon, 24 Sep 2012 17:59:53 -0700 (PDT) In-Reply-To: <21A5E1E970CD46459ECBE86D6CC4B28C676DD94D@spexch01.WindLogics.local> (Ken Williams's message of "Mon, 24 Sep 2012 16:36:17 -0500") 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: Ken Williams Cc: "emacs-orgmode@gnu.org" Hi Ken, Ken Williams writes: > Has anyone ever tried implementing a “breadcrumbs”-type feature in > org-mode? What about this? (defun org-show-olpath () "Show the outline path." (interactive) (let (p h) (save-excursion (while (and (setq h (ignore-errors (org-get-heading t t))) (org-up-heading-safe)) (setq p (concat h "/" p))) (setq p (concat (org-get-heading t t) "/" p))) p)) (add-hook 'org-mode-hook (lambda() (add-to-list 'mode-line-format '(:eval (org-show-olpath)) t))) -- Bastien