From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: All source block properties on one line -- or foldied? Date: Fri, 20 Nov 2015 16:53:45 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114052eaf46ec20524fbb756 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzowV-00077i-AN for emacs-orgmode@gnu.org; Fri, 20 Nov 2015 11:53:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzowU-000865-96 for emacs-orgmode@gnu.org; Fri, 20 Nov 2015 11:53:47 -0500 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]:35930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzowU-000861-20 for emacs-orgmode@gnu.org; Fri, 20 Nov 2015 11:53:46 -0500 Received: by lfs39 with SMTP id 39so72912565lfs.3 for ; Fri, 20 Nov 2015 08:53:45 -0800 (PST) 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 Mailinglist --001a114052eaf46ec20524fbb756 Content-Type: text/plain; charset=UTF-8 Is there a way to put all of these prelim header lines on one line, such as turning this #+NAME: named-block #+HEADER: :var data=2 #+BEGIN_SRC emacs-lisp (message "data:%S" data) #+END_SRC to, perhaps, this #+NAME: named-block; #+HEADER: :var data=2; #+BEGIN_SRC emacs-lisp (message "data:%S" data) #+END_SRC . . . or maybe fold them? I've tried a few things, but they're not working. I guess it's for aesthetics sake; the chunkiness of all those headers stacked up is distracting -- and the only folding just folds up the code contents itself. I know drawers like :PROPERTIES: folds up nicely, but not Babel blocks. Any way to get that behavior? Also, Library of Babel seems to need the #+NAME field to "ingest" a code block, so it's not really an option to just leave #+NAME off. And yes, I need LOB for individual code block-level of control. Nothing else (I know of) gives code block-level granularity, not `org-babel-load-file`, not the usual Emacs package either -- unless I simply put one code block per file. (FYI my train of thought.) LB --001a114052eaf46ec20524fbb756 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Is there a way to put all of these prelim header lines on = one line, such as turning this

#+NAME: named-block<= br>
#+HEADER: :var data=3D2
#+BEGIN_SRC emacs-lisp=
(message "data:%S" data)
#+END_SRC

to, perhaps, this

#+NA= ME: named-block;=C2=A0#+HEADER: :var data=3D2;=C2=A0#+BEGIN_SRC emacs-lisp<= br>
(message "data:%S" data)
#+END_SRC

. . . or maybe fold them?

I've tried a few things, but they're not working. I guess it&= #39;s for aesthetics sake; the chunkiness of all those headers stacked up i= s distracting -- and the only folding just folds up the code contents itsel= f. I know drawers like :PROPERTIES: folds up nicely, but not Babel blocks. = Any way to get that behavior?

Also, Library of Bab= el seems to need the #+NAME field to "ingest" a code block, so it= 's not really an option to just leave #+NAME off. And yes, I need LOB f= or individual code block-level of control. Nothing else (I know of) gives c= ode block-level granularity, not `org-babel-load-file`, not the usual Emacs= package either -- unless I simply put one code block per file. (FYI my tra= in of thought.)

LB
--001a114052eaf46ec20524fbb756--