https://github.com/ljos/ob-prolog
Org babel functions for prolog evaluation.
https://github.com/ljos/ob-prolog
emacs-lisp literate-programming org-mode prolog
Last synced: 9 months ago
JSON representation
Org babel functions for prolog evaluation.
- Host: GitHub
- URL: https://github.com/ljos/ob-prolog
- Owner: ljos
- Created: 2015-01-02T10:53:30.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-11-04T19:27:09.000Z (over 6 years ago)
- Last Synced: 2025-08-11T19:44:17.362Z (11 months ago)
- Topics: emacs-lisp, literate-programming, org-mode, prolog
- Language: Emacs Lisp
- Size: 50.8 KB
- Stars: 12
- Watchers: 1
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
#+TITLE: Org-babel functions for prolog evaluation
This project contains a set of functions that are need to evaluate
prolog in org-babel.
* Getting Started
[[https://melpa.org/#/sparql-mode][file:https://melpa.org/packages/ob-prolog-badge.svg]] [[https://stable.melpa.org/#/sparql-mode][file:https://stable.melpa.org/packages/ob-prolog-badge.svg]]
- Download ob-prolog and put it in a directory somewhere.
- Add the following to your .emacs file
- (or use melpa)
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "/path/to/ob-prolog-dir")
#+END_SRC
You also need to add the next snippet or add =(prolog . t)= to
languages org-babel can load:
#+BEGIN_SRC emacs-lisp
(org-babel-do-load-languages
'org-babel-load-languages
'((prolog . t)))
#+END_SRC
You can then execute the query by pressing =C-c C-c= on the
source-block header.