mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 18:36:26 +00:00
* ob-lua.el: remove it.
original ob-lua exists already.
This commit is contained in:
parent
90607d1d18
commit
2e6922191e
|
@ -1,45 +0,0 @@
|
|||
;;; ob-lua.el --- Execute Lua code within org-mode blocks.
|
||||
;; Copyright 2016 stardiviner
|
||||
|
||||
;; Author: stardiviner <numbchild@gmail.com>
|
||||
;; Maintainer: stardiviner <numbchild@gmail.com>
|
||||
;; Keywords: org babel lua
|
||||
;; URL: https://github.com/stardiviner/ob-lua
|
||||
;; Created: 12th April 2016
|
||||
;; Version: 0.0.1
|
||||
;; Package-Requires: ((org "8"))
|
||||
|
||||
;;; Commentary:
|
||||
;;
|
||||
;; Execute Lua code within org-mode blocks.
|
||||
|
||||
;;; Code:
|
||||
(require 'org)
|
||||
(require 'ob)
|
||||
|
||||
(defgroup ob-lua nil
|
||||
"org-mode blocks for Lua."
|
||||
:group 'org)
|
||||
|
||||
(defcustom ob-lua:default-session "*lua*"
|
||||
"Default Lua session.
|
||||
|
||||
It is lua inferior process from `run-lua'."
|
||||
:group 'ob-lua
|
||||
:type 'string)
|
||||
|
||||
;;;###autoload
|
||||
(defun org-babel-execute:lua (body params)
|
||||
"org-babel lua hook."
|
||||
(let* ((session (or (cdr (assoc :session params))
|
||||
ob-lua:default-session))
|
||||
(cmd (mapconcat 'identity (list "lua -") " ")))
|
||||
(org-babel-eval cmd body)))
|
||||
|
||||
;;;###autoload
|
||||
(eval-after-load "org"
|
||||
'(add-to-list 'org-src-lang-modes '("lua" . lua)))
|
||||
|
||||
(provide 'ob-lua)
|
||||
|
||||
;;; ob-lua.el ends here
|
Loading…
Reference in a new issue