@@ -133,7 +133,7 @@ mode. Default is whitespace followed by 0 or 1 single-letter colon-keyword
133
133
[" Show arglist" inf-clojure-show-arglist t]
134
134
[" Show documentation for var" inf-clojure-show-var-documentation t]
135
135
[" Show source for var" inf-clojure-show-var-source t]
136
- [" Show vars in ns" inf-clojure-show-ns-varst ]
136
+ [" Show vars in ns" inf-clojure-show-ns-vars t ]
137
137
[" Apropos" inf-clojure-apropos t]
138
138
[" Macroexpand" inf-clojure-macroexpand t]
139
139
" --"
@@ -651,6 +651,20 @@ If you are using REPL types, it will pickup the most approapriate
651
651
:type 'string
652
652
:package-version '(inf-clojure . " 2.0.0" ))
653
653
654
+ (defcustom inf-clojure-ns-vars-form-lumo
655
+ " (lumo.repl/dir %s)\n "
656
+ " Lumo form to show the public vars in a namespace."
657
+ :type 'string
658
+ :package-version '(inf-clojure . " 2.0.0" ))
659
+
660
+ (defun inf-clojure-ns-vars-form ()
661
+ " Return the form to query inferior Clojure for public vars in a namespace.
662
+ If you are using REPL types, it will pickup the most approapriate
663
+ `inf-clojure-ns-vars-form` variant."
664
+ (pcase (inf-clojure--set-repl-type (inf-clojure-proc))
665
+ (`lumo inf-clojure-ns-vars-form-lumo)
666
+ (_ inf-clojure-ns-vars-form)))
667
+
654
668
(define-obsolete-variable-alias 'inf-clojure-ns-vars-command 'inf-clojure-ns-vars-form " 2.0.0" )
655
669
656
670
(defcustom inf-clojure-set-ns-form
@@ -786,7 +800,7 @@ prefix argument PROMPT-FOR-NS, it prompts for a namespace name."
786
800
(let ((ns (if prompt-for-ns
787
801
(car (inf-clojure-symprompt " Ns vars" (clojure-find-ns)))
788
802
(clojure-find-ns))))
789
- (comint-proc-query (inf-clojure-proc) (format inf-clojure-ns-vars-form ns))))
803
+ (comint-proc-query (inf-clojure-proc) (format ( inf-clojure-ns-vars-form) ns))))
790
804
791
805
(defun inf-clojure-set-ns (prompt-for-ns )
792
806
" Set the ns of the inferior Clojure process to NS.
0 commit comments