blob 31960a53dc427ac38898b9c0ae1de8b27fef422b 935 bytes (raw)
name: contrib/lisp/ob-php.el # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
| | ;;; ob-php.el --- Execute PHP within org-mode blocks.
;; Copyright 2016 stardiviner
;; Author: stardiviner <numbchild@gmail.com>
;; Maintainer: stardiviner <numbchild@gmail.com>
;; Keywords: org babel php
;; URL: https://github.com/stardiviner/ob-php
;; Created: 04th May 2016
;; Version: 0.0.1
;; Package-Requires: ((org "8"))
;;; Commentary:
;;
;; Execute PHP within org-mode blocks.
;;; Code:
(require 'org)
(require 'ob)
(defgroup ob-php nil
"org-mode blocks for PHP."
:group 'org)
;; todo
(defcustom ob-php:inf-php-buffer "*php*"
"Default PHP inferior buffer."
:group 'ob-php
:type 'string)
;;;###autoload
(defun org-babel-execute:php (body params)
"org-babel PHP hook."
;; todo
(let* ((cmd (mapconcat 'identity (list "php") " -r ")))
(org-babel-eval cmd body)
))
;;;###autoload
(eval-after-load "org"
'(add-to-list 'org-src-lang-modes '("php" . php)))
(provide 'ob-php)
;;; ob-php.el ends here
|
debug log:
solving 31960a5 ...
found 31960a5 in https://yhetil.org/emacs/CAL1eYu+Nq_Bp4VXXTfCd7YN5ab-XQmZC5pUe_D0E6wzw0p1Scw@mail.gmail.com/
applying [1/1] https://yhetil.org/emacs/CAL1eYu+Nq_Bp4VXXTfCd7YN5ab-XQmZC5pUe_D0E6wzw0p1Scw@mail.gmail.com/
diff --git a/contrib/lisp/ob-php.el b/contrib/lisp/ob-php.el
new file mode 100644
index 0000000..31960a5
Checking patch contrib/lisp/ob-php.el...
Applied patch contrib/lisp/ob-php.el cleanly.
index at:
100644 31960a53dc427ac38898b9c0ae1de8b27fef422b contrib/lisp/ob-php.el
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.