未加星标

Literate Programming with Org-mode

字体大小 | |
[系统(linux) 所属分类 系统(linux) | 发布者 店小二05 | 时间 2018 | 作者 红领巾 ] 0人收藏点击收藏

Niklas Carlsson has posted a rerecording of a talk he gave at work about the power of Org-mode for literate programming and exploratory programming in general . Although he is running Emacs with the Doom package, you should have no trouble following the talk regardless of how you like to run Emacs.

Carlsson began with a brief introduction to Emacs and Org-mode but quickly moved to introducing code blocks and showing how you can intersperse text and code and then execute the code having the results be automatically included in the Org file. One of the things I liked was that he showed several ways of including the results of one block in another using sessions or tangling.

Another nice feature he demonstrated was embedding Elisp on the #+BEGIN_SRC line to calculate some of the parameters. He made use of that facility when he discussed building and running an application in a Docker image.

Next, he talked about Org tables and using Emacs Calc functions with them. Again, he showed how to chain data from one table to another making it easy to build up more complex tables from intermediate versions or to include one set of results into a new table for further analysis.

He showed how to export the results to a PDF but did this by manually calling the export routines rather than using the Org export menu. This was the only weakness in his talk. He ended up writing an Elisp function that exported to PDF and opened the resulting PDF file. That’s unnecessary because Org will do that for you from the export menu.

Finally, he demonstrated how he can export part of an Org file to his blog.

This is a great video and worth watching. It’s and hour and 23 minutes so you’ll definitely need to schedule some time. Carlsson has put all the source material for the talk on GitHub so if you want to study his code more closely than is possible during the talk, you should go there.

NOTE: Karl Voit also has a nice post on the video .

本文系统(linux)相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统

代码区博客精选文章
分页:12
转载请注明
本文标题:Literate Programming with Org-mode
本站链接:https://www.codesec.net/view/621000.html


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(234)