emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* All source block properties on one line -- or foldied?
@ 2015-11-20 16:53 Lawrence Bottorff
  0 siblings, 0 replies; only message in thread
From: Lawrence Bottorff @ 2015-11-20 16:53 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1393 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-20 16:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-20 16:53 All source block properties on one line -- or foldied? Lawrence Bottorff

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).