emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lawrence Bottorff <borgauf@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: All source block properties on one line -- or foldied?
Date: Fri, 20 Nov 2015 16:53:45 +0000	[thread overview]
Message-ID: <CAFAhFSWRTA08-9xKbUtWErJ9y0=PmgXnOv5iFumeAORdybTuKg@mail.gmail.com> (raw)

[-- 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 --]

                 reply	other threads:[~2015-11-20 16:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFAhFSWRTA08-9xKbUtWErJ9y0=PmgXnOv5iFumeAORdybTuKg@mail.gmail.com' \
    --to=borgauf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).