Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (28 loc) · 1.22 KB

ToolsIntegration.org

File metadata and controls

32 lines (28 loc) · 1.22 KB

Tools Integration

This document covers how to add Cakelisp support to various different tools/editors.

Counting lines of code

Use the following setup to cloc:

cloc --force-lang="Lisp",cake [dirs]

Github syntax highlighting

Create a .gitattributes file in the project root, then add the following:

*.cake linguist-language=lisp

Emacs

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")

Specify indentation of custom forms

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.