4 ms·
This is useful! Are there other packages on MELPA that provide similar functionality?
by kaiwen1 4y ago
This is useful! Are there other packages on MELPA that provide similar functionality?
- findingaway 4y agoOrg mode provides a supercharged version of this functionality that will work for any language as long as you can point it to an appropriate runtime. It's definitely a little more verbose, since you have to declare the language and stuff inside the org mode syntax, but I'm sure that you could get it to work ad-hoc with a little hacking. https://orgmode.org/worg/org-contrib/babel/ https://orgmode.org/worg/org-contrib/babel/
- merlincorey 4y ago`org-mode` has the ability to evaluate code blocks and store the output in a following results block[0]. You can configure it to run just about everything in various ways and therefore you can do Literate Programming in nearly the full Knuth sense in it. I find it's a good solution for a local "notebook" similar to IPython/Jupyter Notebooks but for any language in Emacs. [0] https://orgmode.org/manual/Evaluating-Code-Blocks.html https://orgmode.org/manual/Evaluating-Code-Blocks.html
- aesyondu 4y agoOrg+babel is probably my favorite thing about emacs, magit being a close second. I tried doing Literate Programming using this blog as my guide http://fgiasson.com/blog/index.php/2016/06/21/optimal-emacs-settings-for-org-mode-for-literate-programming/ http://fgiasson.com/blog/index.php/2016/06/21/optimal-emacs-..., but I got burned out pretty quickly. I think my problem was I put literally everything in a single README.org file, and it was so taxing scrolling up and down. I might try again but with multiple org files.
- xenodium 4y agoExtending org babel to support other languages is fairly accessible. I had a lot of fun getting SwiftUI to rendering inline https://xenodium.com/previewing-swiftui-layouts-in-emacs-revisited https://xenodium.com/previewing-swiftui-layouts-in-emacs-rev... Also did a little experiment for Objective-C https://xenodium.com/org-babel-objective-c-support https://xenodium.com/org-babel-objective-c-support
- ghosty141 4y agoThe first link is really impressive. Amazing what can be achieved with so little code/configuration.
- robertkrahn01 4y agoThere is lively.el [1]! It is also on MELPA in a more recent version [2]. It allows to put an elisp expression into any buffer and then replaces that with the output in a time interval or manually. I use that frequently. [1] https://lukego.livejournal.com/23379.html https://lukego.livejournal.com/23379.html [2] https://github.com/purcell/lively/tree/348675828c6a81bfa1ac311ca465aad813542c1b https://github.com/purcell/lively/tree/348675828c6a81bfa1ac3...
- hajovonta 4y agoWow this package rocks!
- unhammer 4y agohttps://blog.sulami.xyz/posts/literate-calc-mode/ https://blog.sulami.xyz/posts/literate-calc-mode/ is pretty nice. I always have literate-calc-minor-mode (+org-mode as major) in my scratch buffer for quick calculations.
- edrx 4y agoRelated: http://angg.twu.net/eepitch.html#test-blocks http://angg.twu.net/eepitch.html#test-blocks