From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Babel for eshell? Date: Sun, 23 Aug 2015 10:03:04 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0158c3b265d3e6051dfd79e8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTYfj-0004bp-EW for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 13:03:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTYfi-0007E8-8b for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 13:03:07 -0400 Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]:35262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTYfi-0007Cl-0M for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 13:03:06 -0400 Received: by lbcbn3 with SMTP id bn3so67406217lbc.2 for ; Sun, 23 Aug 2015 10:03:04 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --089e0158c3b265d3e6051dfd79e8 Content-Type: text/plain; charset=UTF-8 Okay, if you check this you'll see the answer I was after. With eshell you can "stay within" emacs to do system/command line stuff. Now, with the elisp code behind eshell I can stay within org-mode within emacs for system stuff. Sure, I could put sh in blocks, but stepping up into scripting seems like a good practice to develop. On Wed, Aug 19, 2015 at 2:44 PM, Lawrence Bottorff wrote: > Is there any way to do literate Babel-style things with eshell? Only shell > (sh) seems to be listed among the languages. As I understand, eshell is > just a wrapper around actual elisp expressions. For example, > > find-file foobar.txt > > is actually > > (find-file "foobar.txt") > > I'd like to do shell-like stuff and capture everything literate-style in > code and result blocks. If no Babel for eshell, is there a way to translate > eshell into its raw elisp? Then I could do Babel on the elisp. > > LB > --089e0158c3b265d3e6051dfd79e8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Okay, if you check this=C2=A0you'll see the answer I was after. With eshell = you can "stay within" emacs to do system/command line stuff. Now,= with the elisp code behind eshell I can stay within org-mode within emacs = for system stuff. Sure, I could put sh in blocks, but stepping up into scri= pting seems like a good practice to develop.

On Wed, Aug 19, 2015 at 2:44 PM, Lawrence = Bottorff <borgauf@gmail.com> wrote:
Is there any way to do literate Babel-style thi= ngs with eshell? Only shell (sh) seems to be listed among the languages. As= I understand, eshell is just a wrapper around actual elisp expressions. Fo= r example,=C2=A0

find-file foobar.txt

=
is actually

(find-file "foobar.txt= ")

I'd like to do shell-like stuff an= d capture everything literate-style in code and result blocks. If no Babel = for eshell, is there a way to translate eshell into its raw elisp? Then I c= ould do Babel on the elisp.

LB

--089e0158c3b265d3e6051dfd79e8--