This document covers how to add Cakelisp support to various different tools/editors.
Use the following setup to cloc:
cloc --force-lang="Lisp",cake [dirs]
Create a .gitattributes
file in the project root, then add the following:
*.cake linguist-language=lisp
Add the following to your .emacs
configuration:
;; Path given as an example; change it to where you put cakelisp
(load-file "~/Repositories/cakelisp/tools/cakelisp.el")
You will need to specify indentation of custom forms because I haven’t written an Emacs parser to automatically determine indentation from macro/generator signatures yet. For example:
(defun mylib-cakelisp-mode ()
(put 'each-in-strdict 'lisp-indent-function 2)
(put 'scope-timed 'lisp-indent-function 1))
(add-hook 'cakelisp-mode-hook mylib-cakelisp-mode)
This will make each-in-strdict
indent all symbols after the first two arguments to the body depth.
The number represents how many arguments are expected to the function.