Skip to content
Snippets Groups Projects
.dir-locals.el 2.98 KiB
Newer Older
((clojure-mode . ((eval . (progn
                            ;; Specify which arg is the docstring for certain macros
                            ;; (Add more as needed)
                            (put 'defannotation 'clojure-doc-string-elt 2)
                            (put 'defendpoint 'clojure-doc-string-elt 3)
                            (put 'defhook 'clojure-doc-string-elt 2)
Cam Saul's avatar
Cam Saul committed
                            (put 'defna 'clojure-doc-string-elt 2)
                            (put 'defne 'clojure-doc-string-elt 2)
                            (put 'defsetting 'clojure-doc-string-elt 2)

                            ;; Define custom indentation for functions inside metabase.
                            ;; This list isn't complete; add more forms as we come across them.
                            (define-clojure-indent
                              (api-let 2)
Cam Saul's avatar
Cam Saul committed
                              (assert 1)
                              (auto-parse 1)
                              (catch-api-exceptions 0)
                              (check 1)
Cam Saül's avatar
Cam Saül committed
                              (checkp 1)
Cam Saül's avatar
Cam Saül committed
                              (conda 0)
Cam Saul's avatar
Cam Saul committed
                              (create-database-definition 1)
                              (execute-query 1)
                              (expect 1)
                              (expect-eval-actual-first 1)
Cam Saul's avatar
Cam Saul committed
                              (expect-expansion 0)
                              (expect-when-testing-dataset 1)
                              (expect-when-testing-mongo 1)
Cam Saul's avatar
Cam Saul committed
                              (expect-with-all-drivers 1)
                              (expect-with-dataset 1)
                              (expect-with-datasets 1)
                              (ins 1)
                              (let-400 1)
                              (let-404 1)
                              (let-500 1)
                              (match 1)
                              (match-$ 1)
Cam Saul's avatar
Cam Saul committed
                              (matcha 1)
Cam Saul's avatar
Cam Saul committed
                              (matchu 1)
                              (pdoseq 1)
                              (post-insert 1)
Cam Saül's avatar
Cam Saül committed
                              (post-select 1)
                              (post-update 1)
                              (pre-cascade-delete 1)
                              (pre-insert 1)
                              (pre-update 1)
                              (project 1)
Cam Saul's avatar
Cam Saul committed
                              (query-with-temp-db 1)
                              (symbol-macrolet 1)
                              (sync-in-context 2)
                              (when-testing-dataset 1)