Run programs in Emacs buffer, seeing their output inline, interactively
github.com
github.com
OTOH, org-mode already does this, without any need for external package and minimal config. It works really well, too!
> one keystroke executes all specially-marked lines from a buffer and inserts the results inline
Not sure if we can make such specially-marked lines using org-mode. Never needed this feature myself. But for those who want a workflow like this the new package could be useful. But again maybe there is a way to do this without an external package with a little bit of elisp?
This repository hasn't been updated in 6 years, and is over 12 years old.
And as someone pointed out, Org mode could already do this.
Not really part of the Renaissance.
*rimshot*
Thank you, I am here all week.
I was thinking that this'd be a feature of the terminal, but on second thought the terminal doesn't know where one command begins or ends, so it'd have to be the shell that saves the output.
https://www.masteringemacs.org/article/complete-guide-master...
There's also `C-c C-p` to jump to the previous command prompt in the likes of M-x shell. That's not quite what you want, but it's another way to jump back up.
Thank you. Really nice to hear it.
> I wanted to ask: what utility do you get in jumping back to the old prompts?
Mostly about jumping back to specific points in buffer. If you’ve been investigating or troubleshooting in a shell session, you can quickly jump back to previous invocations of a command to view its output.
By now, I’ve become used to imenu being available in most modes/contexts, so I figured why not eshell too.
Another difference might be, that the result is just the result, not some structure in a JSON file, like it would be in a Jupyter notebook.
it was very ambitious but I don't know where it's at now
gif, screenshot, anything to make me not install it and run it just to find out it wasn't what i wanted / needed.
For the exact same reasons You are mentioning. Thanks.
I love seeing projects like this, but I seldom use them. Emacs out of the box, with my really simple configuration, supports all programming languages I use as well as my markdown-based book writing activities.
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.
Also did a little experiment for Objective-C https://xenodium.com/org-babel-objective-c-support
I tried doing Literate Programming using this blog as my guide 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.
[1] https://lukego.livejournal.com/23379.html [2] https://github.com/purcell/lively/tree/348675828c6a81bfa1ac3...
Might work for elisp though.
do you know how to make the output in the terminal cleaner?
for example `:term ls -lah /` isn't well formatted