From: Bastien <bzg@altern.org>
To: Ken Williams <Ken.Williams@windlogics.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Breadcrumbs?
Date: Tue, 25 Sep 2012 02:59:57 +0200 [thread overview]
Message-ID: <87lifysyr6.fsf@bzg.ath.cx> (raw)
In-Reply-To: <21A5E1E970CD46459ECBE86D6CC4B28C676DD94D@spexch01.WindLogics.local> (Ken Williams's message of "Mon, 24 Sep 2012 16:36:17 -0500")
Hi Ken,
Ken Williams <Ken.Williams@windlogics.com> 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
next prev parent reply other threads:[~2012-09-25 0:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-24 21:36 Breadcrumbs? Ken Williams
2012-09-25 0:44 ` Breadcrumbs? Anthony Lander
2012-09-25 9:27 ` Breadcrumbs? Sebastien Vauban
2012-09-25 9:35 ` Breadcrumbs? Bastien
2012-09-25 11:25 ` Breadcrumbs? Sebastien Vauban
2012-09-25 12:48 ` Breadcrumbs? Bastien
2012-09-26 3:49 ` Breadcrumbs? Carsten Dominik
2012-09-26 6:32 ` Breadcrumbs? Bastien
[not found] ` <80d3198a49.fsf@somewhere.org>
2012-09-26 9:07 ` **: Breadcrumbs? Bastien
[not found] ` <13349.1348583253@alphaville>
2012-09-25 15:31 ` Breadcrumbs? Bastien
2012-09-25 14:18 ` Breadcrumbs? Nick Dokos
2012-09-25 20:31 ` Breadcrumbs? François Pinard
2012-09-25 17:44 ` Breadcrumbs? Ken Williams
2012-09-25 0:59 ` Bastien [this message]
2012-09-25 1:16 ` Breadcrumbs? Bastien
2012-09-25 1:20 ` Breadcrumbs? Eric Abrahamsen
2012-09-25 1:46 ` Breadcrumbs? Bastien
2012-09-25 15:04 ` Breadcrumbs? Memnon Anon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lifysyr6.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=Ken.Williams@windlogics.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).