3 ms·
One very special use-case for org-mode I have in "my life" is literate programming. I've not used any other tool, that can do this as well as org-mode. (1) I c
by zelphirkalt 6y ago
One very special use-case for org-mode I have in "my life" is literate programming. I've not used any other tool, that can do this as well as org-mode.
(1) I can export to many formats.
(2) I can choose what to code export (source blocks).
(3) I can choose what code to run on export.
(4) I can give names to source blocks and then link to them in other source blocks, basically building a code dependency tree with them, allowing me to focus on one aspect at a time.
(5) I can link to other source blocks out of order.
(6) I can specify how the output should be put back into my document.
(7) I get syntax highlighting for any language, that is usually highlighted in my Emacs.
(8) I can use multiple (programming) languages. For example I could output a data table and then have another source block using GNU Plot to make a nice diagram.
(9) I can write explanations next to the source blocks in a lot of detail.
There is probably more, that does not come to mind just right now. Then there are some git hosts (notabug), which can render org-mode files like the usual hosts render markdown files (readme.md). So when you upload into git, you get instant readability in a rendered version, plus possibly syntax highlighting on the website.
That is only one aspect where org-mode really shines. I find it also indispensable for to-do lists. Using shortcuts to check or uncheck items and recalculating done/to-do count or percentages in a higher level of the to-do list. One can prioritize headings and use tagging, to enable later filtering of headings and narrowing down visible content.
One can also render Latex formulas inline for preview. If you need only standard document classes, you can go ahead and output to latex. Or you can create your own document class in your init.el file and customize everything as you would in writing Latex yourself, only that you get the benefit of writing org-mode instead. Much more focus on the content.
And then of course everything is plain text, which makes this even better and easy to manage in version control.
I just love org-mode! For me, easily one of the huge selling points for Emacs. The only other easy to use plain text format, that could get close was reStructuredText for me. Unfortunately there are few good reStructuredText parsers in many programming languages.