kappa-mode is a GNU/Emacs major mode for editing files written in
the Kappa modeling language. The mode
knows enough about Kappa syntax to do some basic fontification but
does currently not do indentation or proper slashification.
kappa-mode is free software distributed under the GPL. You can
download the latest version from the Github
In order to use
kappa-mode just copy the file
kappa.el to your
~/.emacs.d directory and add the following to your
(add-to-list 'load-path "~/.emacs.d") (require 'kappa)
Alternatively, you may load
kappa.el directly using the following
If you are using a version of KaSim older than KaSim 4, use the
kappa.el file from the
Usage and customization
The syntax highlighting is quite intense by default (almost every
character is highlighted in some way) but also highly customizable.
Users that are unhappy with the default font lock color scheme may
change it through the numerous font face customization variables
In addition to the syntax highlighting, the mode provides two
convenience functions for simulating the current Kappa file
kappa-run-sim, mapped to
C-c C-r) and plotting the result
kappa-plot-sim, mapped to
C-c C-p). The former requires
KaSim and the later
Gnuplot to be installed. The executable
paths of these tools can be adjusted through the customization
gnuplot-mode will be
used for plotting if present but is not a requirement.
There seems to be a bug when using Kappa mode at the same time as CEDET causing Emacs to fontify the entire buffer with font-lock-comment-face.
Support for automatic indentation is missing.