4

How can I skip to next heading in org-mode?

Say This is my org-file, pipe indicates the cursor:

* Top
** Apple|
** Banana
** Cherry

I'd like to run a command and have my cursor now be here:

* Top
** Apple
** Banana|
** Cherry
  • Hi Alex. Did this answer address your question? – Malabarba Mar 28 '15 at 23:55
10

org-next-item is the built-in way to move forward in a plain list. However, a plain list in org-mode actually looks like:

* here's the headline

  - An item
  - Another item
  - Another item

The example you give is of headlines:

* Top
** Apple
** Banana
** Cherry

To move forward to the next headline, you can use org-forward-heading-same-level (default C-c C-f). Also, since org-mode is built on top of outline-mode, you can also use the outline motion commands such as outline-next-visible-heading (default C-c C-n). Note that org-forward-heading-same-level takes over for outline-forward-same-level, and there's also outline-next-heading that is not bound to a key combination by default.

  • 1
    +1 Maybe mention default bindings for the commands you list? C-c C-f for org-forward-heading-same-level, etc. – itsjeyd Nov 9 '14 at 12:50
  • Good suggestion. Done -- along with a link to the keybindings for outline-mode. – Dan Nov 9 '14 at 15:13
  • 2
    I like org-forward-element and org-backward-element. – lawlist Nov 9 '14 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.