Skip to content

Commit

Permalink
Indentation rules for macros
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhu committed Dec 15, 2023
1 parent d1197ff commit 00b3da9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions config/114-clojure-config.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@
(setq buffer-save-without-query t)
(add-hook 'clojure-mode-hook
(lambda ()
(require 'flycheck-clj-kondo)
(flycheck-mode)
(lisp-mode-setup)
(put-clojure-indent 'checking 1)
(put-clojure-indent 'async 1)
(put-clojure-indent '>fn 1)
(put-clojure-indent '>defn 1)
(put-clojure-indent '>defn- 1)
(put-clojure-indent '>λ 1)
(put-clojure-indent 'deftask :defn)
(put-clojure-indent '>defn :defn)
(put-clojure-indent '>defn- :defn)
(push '(">fn" . (?> (Br . Bl) )) prettify-symbols-alist)
(push '("partial" . ) prettify-symbols-alist)
(push '("comp" . ?ο) prettify-symbols-alist)
(require 'flycheck-clj-kondo)
(flycheck-mode)
(lisp-mode-setup))))
(push '("comp" . ?ο) prettify-symbols-alist))))
:config (progn
(diminish-major-mode 'clojure-mode "")
(bind-key "C-c C-z" nil clojure-mode-map))) ; Remove the binding for inferior-lisp-mode
Expand Down

0 comments on commit 00b3da9

Please sign in to comment.