Add special indent for clojure (match) macro

This commit is contained in:
Jeremy Dormitzer 2020-06-14 12:26:45 -04:00
parent b3c7e6b9e7
commit f6670386e9

View File

@ -3217,9 +3217,9 @@ Start with clojure-mode:
#+BEGIN_SRC emacs-lisp
(use-package clojure-mode
:mode (("\\.clj\\'" . clojure-mode)
("\\.cljs\\'" . clojurescript-mode)
("\\.cljc\\'" . clojurec-mode)
("\\.edn\\'" . clojure-mode))
("\\.cljs\\'" . clojurescript-mode)
("\\.cljc\\'" . clojurec-mode)
("\\.edn\\'" . clojure-mode))
:config
(define-clojure-indent
(defroutes 'defun)
@ -3235,7 +3235,8 @@ Start with clojure-mode:
(let-routes 1)
(context 2)
(:= 3)
(:+ 3)))
(:+ 3)
(match 1)))
#+END_SRC
Add flycheck support: