Neo4j and Emacs
Neo4j is one of the most powerful graph database. However, support for Neo4j in Emacs is still limited. Luckily, with the help of comint-mode, we can easily create a custom inferior shell for executing query and retrieving the result from a running Neo4j instance. This article from Mastering Emacs illustrates how to write your own command interpreter in Emacs. Based on that guide, I have developed a new package for Emacs to simplify the steps of composing and testing cypher query command. This post will summarize my experience and my setup to interact with Neo4j from Emacs.
Cypher mode
First, of course you need a major mode for displaying and editing the cypher
query command. You can easily install it using
package.el. The mode will
automatically associate any files with .cyp and .cypher extension so you
don’t need to do any thing after installing it. It also supports basic
indentation beside the must-have syntax highlighting.


