Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there an Emacs org-mode command to jump to an org heading?

Tags:

emacs

org-mode

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>

like image 228
incandescentman Avatar asked Feb 21 '13 20:02

incandescentman


People also ask

How do I use org Mode in Emacs?

Emacs does not actually understand you are editing an Org document, yet. To enable Org mode on your current document, type M-x org-mode which will enable the Org mode on the current document. Those are minuses, not underscores.

How do you add a link in Org mode?

From an Org buffer, the following commands create, navigate or, more generally, act on links. Insert a link30. This prompts for a link to be inserted into the buffer. You can just type a link, using text for an internal link, or one of the link type prefixes mentioned in the examples above.

Does Org mode come with Emacs?

Emacs has included Org Mode as a major mode by default since 2006. Bastien Guerry is the current maintainer, in cooperation with an active development community. Since its success in Emacs, some other systems now provide functions to work with org files.

What can Org mode do?

Description. Org mode is routinely used to build and manage complex workflows. It does this using an elegantly simple syntax that scales from basic markup to full LaTeX typesetting and from plain text notes to literate programs. Everything you need to get started is demonstrated in the example.


2 Answers

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:

(setq org-outline-path-complete-in-steps nil)
like image 188
event_jr Avatar answered Oct 22 '22 03:10

event_jr


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.
          <down> / <up>   Next/previous visible headline.
          <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
like image 35
armandino Avatar answered Oct 22 '22 01:10

armandino