@@ -553,6 +553,19 @@ The prefix argument SWITCH-TO-REPL controls whether to switch to REPL after the
553
553
" Command to query inferior Clojure for a var's documentation."
554
554
:type 'string )
555
555
556
+ (defcustom inf-clojure-var-doc-command-lumo
557
+ " (lumo.repl/doc %s)\n "
558
+ " Lumo command to query inferior Clojure for a var's documentation."
559
+ :type 'string )
560
+
561
+ (defun inf-clojure-var-doc-form ()
562
+ " Return the form to query inferior Clojure for a var's documentation.
563
+ If you are using flavors, it will pickup the most approapriate
564
+ `inf-clojure-var-doc-command` variant."
565
+ (pcase inf-clojure-repl-flavor
566
+ (lumo inf-clojure-var-doc-command-lumo)
567
+ (_ inf-clojure-var-doc-command)))
568
+
556
569
(defcustom inf-clojure-var-source-command
557
570
" (clojure.repl/source %s)\n "
558
571
" Command to query inferior Clojure for a var's source."
@@ -645,9 +658,9 @@ The value is nil if it can't find one."
645
658
646
659
(defun inf-clojure-show-var-documentation (var )
647
660
" Send a command to the inferior Clojure to give documentation for VAR.
648
- See variable `inf-clojure-var-doc-command ' ."
661
+ See function `inf-clojure-var-doc-form ' ."
649
662
(interactive (inf-clojure-symprompt " Var doc" (inf-clojure-var-at-pt)))
650
- (comint-proc-query (inf-clojure-proc) (format inf-clojure-var-doc-command var)))
663
+ (comint-proc-query (inf-clojure-proc) (format ( inf-clojure-var-doc-form) var)))
651
664
652
665
(defun inf-clojure-show-var-source (var )
653
666
" Send a command to the inferior Clojure to give source for VAR.
0 commit comments