emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Multiple header-args of same name in babel
@ 2016-03-17 18:58 Tiago Natel de Moura
  0 siblings, 0 replies; only message in thread
From: Tiago Natel de Moura @ 2016-03-17 18:58 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello,

What's the best way to split long header arguments in multiple lines?

What I want to achieve is the same as the babel :var argument, but for
other header (:imports).

For example, with :var I can do:

#+HEADER: :var a=1
#+HEADER: :var b=2
#+HEADER: :var c=3
#+BEGIN_SRC go
fmt.Printf("%d", a+b+c)
#+END_SRC

But it doesn't work for other headers and as I'd saw experimenting some
code in ob-go, it's impossible without some changes in ob-core.el, because
:var is handled differently there. When the function org-babel-execute:go
is called, the params only have the first header assigned.

What I'm trying to solve is the following problem:

#+HEADER: :imports '("fmt" "math" "crypto" ... <very long list of imports
here>)
#+BEGIN_SRC go
// some code
#+END_SRC

I wanna keep my source code with lines with 80 columns as possible...

Thanks.

-- 
[]'s
i4k

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

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

only message in thread, other threads:[~2016-03-17 18:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-17 18:58 Multiple header-args of same name in babel Tiago Natel de Moura

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).