An Emacs mode for LogicBlox Datalog.
Emacs Lisp Gherkin Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features
snippets/lb-datalog-mode
.gitignore
.travis.yml
Cask
Makefile
README.md
lb-datalog-compile.el
lb-datalog-connect.el
lb-datalog-core.el
lb-datalog-mode-expansions.el
lb-datalog-mode-pkg.el
lb-datalog-mode.el
lb-datalog-project.el
lb-datalog-snippets.el
lb-datalog-wy.el
lb-datalog.wy

README.md

lb-datalog-mode Build Status

An Emacs mode for LogicBlox Datalog.

Author

George Balatsouras

License

MIT license (see LICENSE)

Manual Installation

This project uses the Cask project management tool for Emacs.

Install Cask:

To install Cask simply run:

curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python

or:

make setup

Install lb-datalog-mode:

Run the following to compile, create a package (tarball), and install it to emacs:

make
make install

Finallly, add the following into your ~/.emacs:

(require 'lb-datalog-mode)

Keyboard Shortcuts

lb-datalog-mode

Keyboard shortcut Description
M-a Move backwards by one atom (either functional or plain).
M-e Move forward by one atom (either functional or plain).
C-M-a Move backwards by one clause.
C-M-e Move forward by one clause.
C-: Rename local variable (at clause scope).
C-c C-c Connect to workspace.
C-c C-q Run Datalog query on connected workspace.
C-c i Get predicate info on connected workspace.
C-c C-l Pint predicate contents on connected workspace.
C-c C-p List predicate sizes on connected workspace.
C-c C-a Add Datalog block of code to connected workspace.
C-c C-f Insert a functional atom at point. This requires yasnippet to be installed.