@@ -547,6 +547,19 @@ The prefix argument SWITCH-TO-REPL controls whether to switch to REPL after the
547
547
" Command to query inferior Clojure for a var's documentation."
548
548
:type 'string )
549
549
550
+ (defcustom inf-clojure-var-doc-command-lumo
551
+ " (lumo.repl/doc %s)\n "
552
+ " Lumo command to query inferior Clojure for a var's documentation."
553
+ :type 'string )
554
+
555
+ (defun inf-clojure-var-doc-form ()
556
+ " Return the form to query inferior Clojure for a var's documentation.
557
+ If you are using flavors, it will pickup the most approapriate
558
+ `inf-clojure-var-doc-command` variant."
559
+ (pcase inf-clojure-repl-flavor
560
+ (lumo inf-clojure-var-doc-command-lumo)
561
+ (_ inf-clojure-var-doc-command)))
562
+
550
563
(defcustom inf-clojure-var-source-command
551
564
" (clojure.repl/source %s)\n "
552
565
" Command to query inferior Clojure for a var's source."
@@ -639,9 +652,9 @@ The value is nil if it can't find one."
639
652
640
653
(defun inf-clojure-show-var-documentation (var )
641
654
" Send a command to the inferior Clojure to give documentation for VAR.
642
- See variable `inf-clojure-var-doc-command ' ."
655
+ See function `inf-clojure-var-doc-form ' ."
643
656
(interactive (inf-clojure-symprompt " Var doc" (inf-clojure-var-at-pt)))
644
- (comint-proc-query (inf-clojure-proc) (format inf-clojure-var-doc-command var)))
657
+ (comint-proc-query (inf-clojure-proc) (format ( inf-clojure-var-doc-form) var)))
645
658
646
659
(defun inf-clojure-show-var-source (var )
647
660
" Send a command to the inferior Clojure to give source for VAR.
0 commit comments