Take the 2-minute tour ×

In Emacs org-mode, is there a command like org-goto-heading?

In a long org-mode file, I have a heading toward the bottom like this:

* questions

I'd like to jump to that heading without having to wade through all the other instances of the word questions.

Is there a command like:

Basically I would like to navigate to that heading using something like this: M-x org-goto-heading questions <RET>

share|improve this question
add comment

4 Answers

up vote 4 down vote accepted

Here is an interesting thread from the org mailing list discussing navigation.

Essentially, add this to your init file:

(setq org-goto-interface 'outline-path-completion
      org-goto-max-level 10)

And you can jump to heading with the org-goto command C-c C-j. You can also use C-u C-c C-w org-refile by adding this to your init file:

share|improve this answer
add comment

I have this command bound to M-o: (imenu-anywhere).

It allows you to quickly jump to sections (selected from a list of all sections). It does not only work in org-mode, but in many other modes as well.

share|improve this answer
add comment

Not sure if this works for you but there is a org-goto function C-c C-j.

Once you invoke it you can scroll the tree using up and down keys or using a search C-s.

Here's a snippet from the docs.

C-c C-j     (org-goto)

Jump to a different place without changing the current outline visibility.
Shows the document structure in a temporary buffer, where you can use the
following keys to find your destination:

          <TAB>         Cycle visibility.
          <RET>         Select this location.
          /           Do a Sparse-tree search
          The following keys work if you turn off org-goto-auto-isearch
          n / p        Next/previous visible headline.
          f / b        Next/previous headline same level.
          u            One level up.
          0-9          Digit argument.
          q            Quit
share|improve this answer
add comment

Then there's org-occur-goto, which makes a multi-occur search on all your org-mode buffers and displays results dinamically as you type.

Useful for any text (not only headings).

share|improve this answer
add comment

Your Answer


