proto/emacs.org

3.8 KiB
Raw Blame History

(TAB to open bullets) < do this lol C-g to cancel a command

emacs org mode

Overview

So there are two basic things that are useful about org mode:

  1. bullets are collapsible which makes it really easy to organize shit and move it around collapsible items rule!
  2. TODO items have a lot of functionality

so, my goal is actually to take projex_demo.org and make it something that is formatted in org mode, and the reason for that is that then we can export it using pandoc with clean html (which we can add a loittle styling etc) .. . once we have a format established, we can loosely require people to add to pads in that format so that chhanges can be git pushed and incorportated into the html. You can see an example of what the raw html looks like here: https://irc.anarchyplanet.org/dox/org.html

Bullets

  • headings are organized with *

    • M-<enter> to add new heading
    • M-<left> or M-<right> to promote / demote heading
  • TAB to expand/collapse trees

TODOs

TODOs are actually probably not that relevant for projex because it's more for internal use … maybe.

DONE demo emacs org mode to data
DONE enable line wrap as default
TODO re-write projex in org mode style
  • projex_demo.org is the test run of this.
  • C-c C-t to cycle through todo-done
  • You can add more options by adding #+TODO: TODO ONHOLD | DONE to the top of the page (requires restart)

links

  • link structure: [ [link][desc] ] (but without the spaces)
  • file C-c C-o to open at point this creates a split buffer. C-x o to switch between split buffers, C-x 1 to return the buffer to a single one.

random notes

useful things overview

So there are two basic things that are useful about org mode:

  1. bullets are collapsible which makes it really easy to organize shit and move it around collapsible items rule!
  2. TODO items have a lot of functionality

The goal is to take projex_demo.org (another file in this directory) and format it into org mode. The reason is that then we can export it using pandoc with clean html (which we can add a loittle styling etc) .. . once we have a format established, we can loosely require people to add to pads in that format so that chhanges can be git pushed and incorportated into the html. You can see an example of what the raw html looks like here: https://irc.anarchyplanet.org/dox/org.html

(I think it's a good strategy to hit enter like this when we're done typing :) )

Switching between emacs 'buffers' (where different documents are open in the same emacs instance)

  • to open projex_demo.org: C-x C-f and then start typing proj and then TAB (for autocomplete)
  • use C-x <left> and use C-x <right> to switch between buffers.

making bullets

So, I guess my first question is about how I make the bullets?

like this
this is a sub-level

Ok I'll give that a shot

So to "attach" the bullet to the text under it, do I just add asterisks to the text?

like this:

Bullet

This is the text under it!

Damn that's east's easy :)

yeah! and, you can do it with all kinds of list items, and it's also especially useful when you have long passages of text that you can just hide by pressing TAB.

Perfect :) So, I might try to just "bullet" this conversation. So I think what I did there makes sense in terms of how I organized that?

YEAH! One more thing:

to make new bullets you can do ALT-enter (ALT is known as M , so M-<enter>)

bullet1
bullet 3
bullet 2
bullet 4

and then, to change the order, you can use M-<up> and M-<down> … to promote you can use M-<left> and M-<right> (but this gets more complicated when you have sub-trees, so we'll worry about that layter beucause that's what I'm having problems with re; my keybindings)

Note for noobs: You have to have the cursor under the bullet tomove your text, not the text itself.