Re: [O] Go to heading using LISP

2013-06-19 Thread Alexander Wingård
On Mon, Jun 10, 2013 at 11:14 PM, Alexander Wingård < alexander.wing...@gmail.com> wrote: > > Maybe some day I will learn some LISP and teach it to navigate the > hierarchical structure. > > I actually got curious and gave this a try and here's what I came up with: test.org: * a ** b *** h ** b **

Re: [O] Go to heading using LISP

2013-06-10 Thread Alexander Wingård
On 10 jun 2013, at 21:00, Myles English wrote: > > Hi Alexander, > > Alexander Wingård writes: > >> I want to create special key-bindings that use the org-refile goto >> interface to jump to specific headings. > > It doesn't use org-refile but this is what I use: > > (defun my-goto-heading(

Re: [O] Go to heading using LISP

2013-06-10 Thread Myles English
Hi Alexander, Alexander Wingård writes: > I want to create special key-bindings that use the org-refile goto > interface to jump to specific headings. It doesn't use org-refile but this is what I use: (defun my-goto-heading(file heading-text) "Visit file `file' and goto headline `heading-tex

Re: [O] Go to heading using LISP

2013-06-09 Thread Jambunathan K
Eric Abrahamsen writes: > if you're just looking for a lisp function to jump to a headline One can use org-ctags and use Emacs and etags interface (M-. etc) to jump to a headline. One can also choose the headline via completion.

Re: [O] Go to heading using LISP

2013-06-09 Thread Eric Abrahamsen
Alexander Wingård writes: > 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

Re: [O] Go to heading using LISP

2013-06-09 Thread Alexander Wingård
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"

Re: [O] Go to heading using LISP

2013-06-08 Thread Eric Abrahamsen
Alexander Wingård writes: > Hi! > > I want to create special key-bindings that use the org-refile goto > interface to jump to specific headings. > > My initial attempt was: > (org-refile 4 "gtd.org" "Projects/Work/Bugs") > > But it seems specifying RFLOC is not that simple. > > Someone have any i