emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Dejan Josifović" <www.paranoidtimes@gmail.com>
To: Andy Moreton <andrewjmoreton@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: ob-plantuml: Proposal to add 'jar-args' customizable variable
Date: Mon, 10 Jan 2022 17:00:36 +0100	[thread overview]
Message-ID: <9bfe6ca4-785e-72e0-1abb-0a1eeafddc83@gmail.com> (raw)
In-Reply-To: <86ee5gvm2b.fsf@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1261 bytes --]

On 09-Jan-22 18:46, Andy Moreton wrote:
> I use this snippet to set the ob-plantuml.el args to match the
> plantuml-mode.el settings:
> 
>    (setf (alist-get :java    org-babel-default-header-args:plantuml)
>          (mapconcat #'identity plantuml-java-args " ")
>          (alist-get :cmdline org-babel-default-header-args:plantuml)
>          (mapconcat #'identity plantuml-jar-args " "))
> 
> Hope that helps,
> 
>      AndyM

Hi AndyM,

This is actually very helpful It didn't remotely cross my mind to do 
something like this. Thanks a bunch! I was using PlantUML from shell to 
create images to bypass this until now.

Of course, a native solution in babel for this is always better.

Looking at this, I see that in my initial post I made an argument only 
for arguments passed to PlantUML jar, but now I see that the same can be 
applied for arguments passed to java command/process. Both are 
customizable in plantuml-mode, but not in ob-plantuml. Maybe we should 
think about adding a separate var for those also.

Regards,

-- 
Dejan Josifović | Дејан Јосифовић
Software engineer | Софтверски инжењер
https://theparanoidtimes.org

()  ascii ribbon campaign
/\  www.asciiribbon.org

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

  reply	other threads:[~2022-01-10 16:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-03 22:56 ob-plantuml: Proposal to add 'jar-args' customizable variable Dejan Josifović
2022-01-06 19:53 ` Dejan Josifović
2022-01-07  4:38   ` Ihor Radchenko
2022-01-08 13:14     ` Dejan Josifović
2022-01-09 17:46 ` Andy Moreton
2022-01-10 16:00   ` Dejan Josifović [this message]
2022-01-15  6:20 ` [PATCH] ob-plantuml: Allow setting PlantUML args for jar file Ihor Radchenko
2022-01-16  7:53   ` Max Nikulin
2022-01-17 17:19     ` Dejan Josifović
2022-01-18 13:30       ` Ihor Radchenko
2022-01-19 16:54         ` Max Nikulin
2022-01-21 12:48           ` Ihor Radchenko
2022-01-23 16:50             ` Max Nikulin
2022-05-08  6:48               ` Ihor Radchenko
2022-01-21 22:22           ` Dejan Josifović

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=9bfe6ca4-785e-72e0-1abb-0a1eeafddc83@gmail.com \
    --to=www.paranoidtimes@gmail.com \
    --cc=andrewjmoreton@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).