Skip to content

Commit b4c3bdc

Browse files
yuhan0bbatsov
authored andcommitted
Add undef-all command
1 parent 5bb6d98 commit b4c3bdc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cider-mode.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ the related commands `cider-repl-clear-buffer' and
171171
"sym" ,sym)
172172
(cider-interactive-eval-handler (current-buffer))))))
173173

174+
(defun cider-undef-all (&optional ns)
175+
"Undefine all symbols and aliases from the namespace NS."
176+
(interactive)
177+
(cider-ensure-op-supported "undef-all")
178+
(cider-nrepl-send-sync-request
179+
`("op" "undef-all"
180+
"ns" ,(or ns (cider-current-ns)))))
181+
174182
;;; cider-run
175183
(defvar cider--namespace-history nil
176184
"History of user input for namespace prompts.")

0 commit comments

Comments
 (0)