Function: cider-ns-edit--add-clause
cider-ns-edit--add-clause is a byte-compiled function defined in
cider-ns.el.
Signature
(cider-ns-edit--add-clause NS-START KEYWORD TEXT)
Documentation
Add a (KEYWORD TEXT) clause to the ns form at NS-START.
A :require clause goes before an existing :import clause, as that's the usual order; otherwise the clause goes last.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20261106.1225/cider-ns.el
(defun cider-ns-edit--add-clause (ns-start keyword text)
"Add a (KEYWORD TEXT) clause to the ns form at NS-START.
A :require clause goes before an existing :import clause, as that's
the usual order; otherwise the clause goes last."
(let ((clause (format "(%s %s)" keyword text))
(import (and (equal keyword ":require")
(cider-ns-edit--clause ns-start ":import"))))
(if import
(progn
(goto-char import)
(insert clause "\n")
(indent-according-to-mode))
(cider-ns-edit--append ns-start clause))))