I hope the tutorial has been useful to you. If it was kindly leave a like and a comment, and consider subscribing and turning on subscription notifications. I intend to make more videos like this on the topics mentioned before as well as on other spacemacs topic like magit (git plugin), large scale refactoring, and a number of other things. Thank you so much for watching.
Note: a great reference can be had here http://spacemacs.org/layers/+emacs/org/README.html
Show that each outline has it’s associated “text” under it
- Which
- can
- have
- outlines And each outline can have its own associated text.
Tab will toggle one heading, shift-tab will toggle all headings in the file
Elipses will show that a heading/line is folded.
You can hold alt and “some movement” to change the level. (up and down work too, changing the vertical level in the same horizontal level)
The org link format is [[link][link text]]
e.g. my github
You can also link to images in the same way but without the link text.
Images can have a caption and a name however.
Org makes it really easy to work with text based tables
Heading 1 | Heading 2 | Heading 3 |
---|---|---|
0 | Name 0 | City 0 |
1 | Name 1 | City 1 |
Org headlines can also be tasks.
You can cycle through the “keywords” by holding shift and using left or right arrow keys.
This is called “changing the state” and it’s possible to track this
Use org-show-todo-tree
which you can run with (, T)
- [X] Subtask 1
- [ ] Subtask 2 [0/2]
- [ ] Subtask 2 Subtask 1
- [ ] Subtask 2 Subtask 2
- [ ] Subtask 3
The agenda is a way to track tasks through one or more tracked files. It can also track timed tasks.
If you press ctrl-c and then [ then it’ll be added to the agenda. This is the equivalent of setting the following.
'(org-agenda-files (quote ("~/Dropbox/org_tutorial.org")))
**(Also note the nice code block up here, syntax highlighting and all)**
Some of the more notable options are…
- Task list (t)
- Weekly/daily agenda (a)
The weekly/daily agenda doesn’t show anything right now.
The window to select time is very flexible. You can click a date- +1w (in one week from now), can also be day (d), hour (h), month (m), etc
- 5pm (would go for 5pm today)
- +2d 11am (at 11am in two days)
- next Monday at 2pm (exactly as it sounds)
- etc.
This task will now show up in the day/week agenda for the day/week it’s due in. It will also show up as a hint (“due in N days”, “overdue by N days”)
This will not show up until that week/day has started(setq org-bullets-bullet-list '("◉" "◎" "⚫" "○" "►" "◇")
(setq org-todo-keywords
'((sequence "TODO(t!)" "NEXT(n!)" "DOINGNOW(d!)" "BLOCKED(b!)" "TODELEGATE(g!)" "DELEGATED(D!)" "FOLLOWUP(f!)" "TICKLE(T!)" "|" "CANCELLED(c!)" "DONE(F!)")))
This associates shortcuts with the various states, so now you can hit t
and get an option to transition
(setq org-todo-keyword-faces
'(("TODO" . org-warning)
("DOINGNOW" . "#E35DBF")
("CANCELED" . (:foreground "white" :background "#4d4d4d" :weight bold))
("DELEGATED" . "pink")
("NEXT" . "#008080")))
(spacemacs/declare-prefix "o" "own-menu")
(spacemacs/set-leader-keys "os" 'org-save-all-org-buffers)
(spacemacs/set-leader-keys "oi" 'helm-org-agenda-files-headings)
(, e e)
opens the menu, you can find some useful themes here https://github.com/fniessen/org-html-themes
Code, tables, etc will all be rendered as expected.
Github will automatically render org files.
- Table formulas (org as excel!)
- Running code inside org mode (literate programming!)
- Org Capture
- Orgzly (Android App)