[feat] support hylang ob-excute
This commit is contained in:
parent
8b87193054
commit
f496d97297
1 changed files with 10 additions and 0 deletions
10
elisp/hy.el
10
elisp/hy.el
|
@ -1,5 +1,15 @@
|
|||
;;; lisp/hy.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defun org-babel-execute:hy (body params)
|
||||
"Execute a block of hylang code with org-babel."
|
||||
(let ((in-file (org-babel-temp-file "n" ".hy"))
|
||||
(verbosity (or (cdr (assq :verbosity params)) 0)))
|
||||
(with-temp-file in-file
|
||||
(insert body))
|
||||
(org-babel-eval
|
||||
(format "hy %s" (org-babel-process-file-name in-file))
|
||||
"")))
|
||||
|
||||
(defconst hy-font-lock--hy-builtins
|
||||
'("*map"
|
||||
"accumulate"
|
||||
|
|
Loading…
Reference in a new issue