xquery-mode / cider-any

Evaluate any buffer in cider – Replaced by Oook
0 stars 1 forks source link

Cider Any

Evaluate anything in cider.

Replaced by Oook

The Cider Any was replaced by Oook. We decided to get rid of the backend design of cider-any and have a simpler interface that just lets you evaluate XQuery documents.

XQuery

Installation

System requirements:

Load Emacs Lisp libraries in your configuration.

(require 'cider-any)
(require 'cider-any-uruk)

Enable cider-any in xquery-mode by default.

(add-hook 'xquery-mode-hook 'cider-any-mode)

Grain access to the MarkLogic account.

(setq cider-any-uruk-uri "xdbc://localhost:8889/"
      cider-any-uruk-user "proofit404"
      cider-any-uruk-password "<secret>")

Usage

Start cider repl in the leiningen project. Uruk library must be pinned in the project.clj in the dependencies section. When you hit C-c C-c XQuery buffer will be evaluated on MarkLogic server you grain access earlier. Result of this evaluation will be displayed in the buffer with corresponding major mode.

If you want to open result document in the web browser you can customize this behavior.

(setq cider-any-uruk-handler 'cider-any-uruk-browse)