4 ms·
One nice org-mode feature is "Babel", the ability to embed snippets of code in documents, run them during export and insert the results (either values or stdout
by chriswarbo 12y ago
One nice org-mode feature is "Babel", the ability to embed snippets of code in documents, run them during export and insert the results (either values or stdout) into other parts of the document http://orgmode.org/worg/org-contrib/babel/ http://orgmode.org/worg/org-contrib/babel/
Since my blog is mostly about programming, this lets me write the code I'm talking about directly into the prose (using C-c ' to switch to the relevant Emacs mode for editing that language) and ensures that the code and results match up exactly (including graphs generated with GNUplot).
- peedy 12y agoPeople even write their dotemacs in Org mode and use babel in their init.el to run it https://github.com/thomanil/dot-emacs/blob/master/thomanil.org https://github.com/thomanil/dot-emacs/blob/master/thomanil.o...
- cies 12y agoEven an "Emacs configuration template" (a la Prelude or emacs-starter-kit) that makes use of it (and `el-get` to retrieve and initialize packages): https://github.com/xiaohanyu/oh-my-emacs https://github.com/xiaohanyu/oh-my-emacs Nifty.