diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-08-26 16:11:31 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-08-26 16:11:31 +0100 |
commit | 5bfb76c9db5be3b74eec2e7a2ef6812eb3a11a71 (patch) | |
tree | 4e65c8ca0d18ca5fac663fabc9c141dc657f4262 /.emacs.d/lisp | |
parent | 89a0f2629f7238938ce10b60fb0c009ecd915a35 (diff) | |
download | dotfiles-5bfb76c9db5be3b74eec2e7a2ef6812eb3a11a71.tar.gz |
Add compojure indentation config
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r-- | .emacs.d/lisp/init-clojure.el | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-clojure.el b/.emacs.d/lisp/init-clojure.el index 6162709..a684a97 100644 --- a/.emacs.d/lisp/init-clojure.el +++ b/.emacs.d/lisp/init-clojure.el @@ -12,7 +12,22 @@ (use-package clojure-mode :config (require 'flycheck-clj-kondo) - (subword-mode +1)) + (subword-mode +1) + + ;; https://github.com/weavejester/compojure/wiki/Emacs-indentation + (define-clojure-indent + (defroutes 'defun) + (GET 2) + (POST 2) + (PUT 2) + (DELETE 2) + (HEAD 2) + (ANY 2) + (OPTIONS 2) + (PATCH 2) + (rfn 2) + (let-routes 1) + (context 2))) (use-package hydra) (use-package clj-refactor |