From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander =?utf-8?b?V2luZ8OlcmQ=?= Subject: Re: Go to heading using LISP Date: Sun, 9 Jun 2013 14:43:55 +0000 (UTC) Message-ID: References: <874nd8awvz.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ulgrj-0007U9-7h for emacs-orgmode@gnu.org; Sun, 09 Jun 2013 10:45:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ulgrh-00026K-Un for emacs-orgmode@gnu.org; Sun, 09 Jun 2013 10:45:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:55825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ulgrh-00025F-Ob for emacs-orgmode@gnu.org; Sun, 09 Jun 2013 10:45:05 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ulgrf-0007vW-Oy for emacs-orgmode@gnu.org; Sun, 09 Jun 2013 16:45:03 +0200 Received: from h135n7-g-kt-d2.ias.bredband.telia.com ([81.234.35.135]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Jun 2013 16:45:03 +0200 Received: from alexander.wingard by h135n7-g-kt-d2.ias.bredband.telia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Jun 2013 16:45:03 +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: emacs-orgmode@gnu.org Eric Abrahamsen ericabrahamsen.net> writes: > > Alexander WingÄrd gmail.com> writes: > > > Hi! > > > > I want to create special key-bindings that use the org-refile goto > > interface to jump to specific headings. More specific example, let's say I want to bind keys in my .emacs file: "C-c b" -> find "gtd.org" and jump to "Projects/Work/Bugs" "C-c m" -> find "gtd.org" and jump to "Projects/Work/Meetings" > > > > My initial attempt was: > > (org-refile 4 "gtd.org" "Projects/Work/Bugs") > > > > But it seems specifying RFLOC is not that simple. > > > > Someone have any idea how to achieve this or another way to jump to a > > heading? > > Is the `org-goto' interface close enough? It only does the current > buffer, but you can set org-goto-interface to make it behave a fair bit > like refile... I've looked at that function aswell but it seems even harder to achieve what I want with: Call it from lisp without any user interaction. If you think that is possible I would love an example. > > Yours > Eric > >