Emacs org-mode syntax
TLDR: Just some examples of what can be done with org-mode syntax.
Everything should be made as simple as possible, but not any simpler – Albert Einstein
Hugo blog posts in org mode
So yeah, I've been writing blog posts in org-mode, and why not? The question is what can we do with it?
Style
Where would we be without styles?
bold italic underlined strikethrough monospaced
This is how you do it : *bold* /italic/ _underlined_ +strikethrough+ =monospaced=
Heading 1
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Heading 2
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries.
Heading 3
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries.
Code Blocks
export const getEndReasonFrom = (assessment: any): string =>
assessment?.claimEndReasonDesc ||
assessment?.personRoleServiceAward?.[0]?.awardEndReasonTypeDesc ||
"";
const endReason = getEndReasonFrom(assessment);
TODO List of things
-
one
-
two
- three
-
- First item in a list.
-
Second item.
-
Sub-item
- Numbered item.
- Another item.
-
TODO This is something that must be done?
DONE This is something that has been done?
Creating tables
These are pretty good really, the best part is that they will auto move when you enter data.
> org-table-create
> org-table-pretty-mode
Row 1 | Row 2 | Row 3 | Row 4 | Row 5 |
---|---|---|---|---|
one | of | the | best | this |
one | of | the | best | this |
one | of | the | best | this |
one | of | the | best | this |
one | of | the | best | this |