[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ob-haxe 4be9d4b 3/6: ob-haxe.el: Use customized command
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ob-haxe 4be9d4b 3/6: ob-haxe.el: Use customized commands for neko and hashlink |
Date: |
Thu, 21 Jan 2021 17:09:46 -0500 (EST) |
branch: externals/ob-haxe
commit 4be9d4b798514c0c03cdd231b31aad2957ab8081
Author: Ian Martins <ianxm@jhu.edu>
Commit: Ian Martins <ianxm@jhu.edu>
ob-haxe.el: Use customized commands for neko and hashlink
---
ob-haxe.el | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/ob-haxe.el b/ob-haxe.el
index f2e463f..08e880a 100644
--- a/ob-haxe.el
+++ b/ob-haxe.el
@@ -47,6 +47,14 @@ path name, like /usr/local/bin/neko."
:package-version '(Org . "9.5")
:type 'string)
+(defcustom org-babel-hashlink-command "hl"
+ "Name of the neko command.
+May be either a command in the path, like neko or an absolute
+path name, like /usr/local/bin/neko."
+ :group 'org-babel
+ :package-version '(Org . "9.5")
+ :type 'string)
+
(defcustom org-babel-haxe-compiler "haxe"
"Name of the haxe compiler.
May be either a command in the path, like haxe or an absolute
@@ -145,11 +153,11 @@ replaced in this string.")
(target-name (cdr (assq :target params)))
(target (pcase target-name
("neko"
- (format "-neko %smain.n -cmd \"neko %smain.n %s\""
- basedir-processed basedir-processed cmdline))
+ (format "-neko %smain.n -cmd \"%s %smain.n %s\""
+ basedir-processed org-babel-neko-command
basedir-processed cmdline))
("hashlink"
- (format "-hl %smain.hl -cmd \"hl %smain.hl %s\""
- basedir-processed basedir-processed cmdline))
+ (format "-hl %smain.hl -cmd \"%s %smain.hl %s\""
+ basedir-processed org-babel-hashlink-command
basedir-processed cmdline))
(_
(if (> (length cmdline) 0)
(error "Cmdline args not allowed for interp target")
- [elpa] branch externals/ob-haxe created (now 12fef03), Stefan Monnier, 2021/01/21
- [elpa] externals/ob-haxe ce15a4f 2/6: Add initial implementation and tests, Stefan Monnier, 2021/01/21
- [elpa] externals/ob-haxe eca840c 1/6: Initial commit, Stefan Monnier, 2021/01/21
- [elpa] externals/ob-haxe 4be9d4b 3/6: ob-haxe.el: Use customized commands for neko and hashlink,
Stefan Monnier <=
- [elpa] externals/ob-haxe 1de4676 5/6: README.org: Add links for Org and Haxe., Stefan Monnier, 2021/01/21
- [elpa] externals/ob-haxe 12fef03 6/6: Make changes for ELPA., Stefan Monnier, 2021/01/21
- [elpa] externals/ob-haxe d47c806 4/6: ob-haxe.el: Allow header overrides for compiler and runtime commands, Stefan Monnier, 2021/01/21