Moving Around in Emacs

Normally I use the arrow keys to move around Emacs, but people keep saying I should try and learn the non-arrow keys here, so I need this information to keep reminding myself.

Org and Markdown mode seems to have similar keybindings which is good, but a lot of these are just fundamental text actions.

Lines

Buffer

Org and Markdown

Paragraph/Block movement in Markdown

Normally paragraphs are clusters of text surrounded by at least two newlines.

Markdown defines it's own "markdown-forward-paragraph" function that is bound to C-down and M-}:

and redefines a paragraph to be anything in a markdown document surrounded by "space":

This is a bit at odds with regular text mode, which doesn't recognize list items for example; if the list item has no blank lines around it, then it won't be seen as a paragraph in text mode but it will in markdown mode.

Markdown lets you move by block as well, with "block", which lets you skip over whole lists.

Paragraph/element movement in Org-mode

In org mode, an element is a heading/paragraph/list. So if we're on a heading, we'll go to the next heading at the same level.

You can combine these keys with the mark, in order to select pieces of your buffer.