From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Give focus to a item Date: Sun, 13 Feb 2011 01:54:32 +0100 Message-ID: <8739nswy7r.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=50786 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoQER-00016i-8M for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 19:54:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoQEP-0004lQ-LX for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 19:54:30 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:58565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoQEP-0004lI-9S for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 19:54:29 -0500 Received: by bwz16 with SMTP id 16so4370710bwz.0 for ; Sat, 12 Feb 2011 16:54:28 -0800 (PST) In-Reply-To: (Marcelo de Moraes Serpa's message of "Sat, 12 Feb 2011 17:53:48 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcelo de Moraes Serpa Cc: Org Mode Hi Marcelo, Marcelo de Moraes Serpa 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