From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: org-babel, src blocks and asymptote Date: Wed, 16 Sep 2009 13:42:27 -0600 Message-ID: References: <87ocpboxxp.fsf@gmail.com> <87ws3yoola.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mo0Oi-0002gG-DK for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 15:42:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mo0Oe-0002dm-Sf for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 15:42:36 -0400 Received: from [199.232.76.173] (port=54579 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mo0Oe-0002dg-M5 for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 15:42:32 -0400 Received: from mail-pz0-f190.google.com ([209.85.222.190]:43826) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mo0Oe-0001nj-8t for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 15:42:32 -0400 Received: by pzk28 with SMTP id 28so648943pzk.5 for ; Wed, 16 Sep 2009 12:42:31 -0700 (PDT) In-Reply-To: <87ws3yoola.fsf@gmail.com> (Nicolas Goaziou's message of "Wed, 16 Sep 2009 18:12:49 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode list Nicolas Goaziou writes: > Actually, about the first problem, I found about org-src-lang-modes > variable and that you can do > > (add-to-list 'org-src-lang-modes '("asymptote" . asy)) > this is now provided in the default value of org-src-lang-modes > > About the second problem, I can always edit code in native mode (C-c ') > go back to org file, compile the block, and visit the link provided. for what it's worth this can be done in three key-chords 1) C-c ' jump back to org buffer 2) C-c C-c recompile with `org-babel-execute-src-block' 3) C-c C-o open file with `org-babel-open-src-block-result' > But it still looks to me a bit awkward and unnatural and I still got > the urge to press C-c C-c in native mode. yea, understood, it would be much more convenient to optionally associate the org-src-buffer with a temporary file to provide support for those major modes (like asy-mode) which require a file name. Thanks -- Eric