emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Give focus to a item


From: Bastien
Subject: Re: [Orgmode] Give focus to a item
Date: Sun, 13 Feb 2011 01:54:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Marcelo,

Marcelo de Moraes Serpa <address@hidden> writes:

> So, I see myself too often trying going to the same toplevel item on
> my gtd.org file. 

Bernt posted some useful bits in a similar discussion:
  http://article.gmane.org/gmane.emacs.orgmode/37180

I would do this:

--8<---------------cut here---------------start------------->8---
(defun my-focus-on-this ()
  "Focus on THIS project"
  (interactive)
  (org-id-goto "6e959401-f6d3-4e9e-9cd8-0f80f12fa585")
  (org-show-subtree)
  (org-narrow-to-subtree))
--8<---------------cut here---------------end--------------->8---

Use `org-id-get-create' to create the ID if necessary.

HTH,

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]