Skip to content

Commit a246bf3

Browse files
committed
Merge pull request #32 from slipset/customize-vars
Add possibility to customize more vars
2 parents aa93684 + 63c2f9e commit a246bf3

File tree

1 file changed

+36
-18
lines changed

1 file changed

+36
-18
lines changed

inf-clojure.el

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -450,45 +450,63 @@ Used by this command to determine defaults."
450450
;;; Command strings
451451
;;; ===============
452452

453-
(defvar inf-clojure-var-doc-command
453+
(defcustom inf-clojure-var-doc-command
454454
"(clojure.repl/doc %s)\n"
455-
"Command to query inferior Clojure for a var's documentation.")
455+
"Command to query inferior Clojure for a var's documentation."
456+
:type 'string
457+
:group 'inf-clojure)
456458

457-
(defvar inf-clojure-var-source-command
459+
(defcustom inf-clojure-var-source-command
458460
"(clojure.repl/source %s)\n"
459-
"Command to query inferior Clojure for a var's source.")
461+
"Command to query inferior Clojure for a var's source."
462+
:type 'string
463+
:group 'inf-clojure)
460464

461-
(defvar inf-clojure-arglist-command
465+
(defcustom inf-clojure-arglist-command
462466
"(try
463467
(:arglists
464468
(clojure.core/meta
465469
(clojure.core/resolve
466470
(clojure.core/read-string \"%s\"))))
467471
(catch Throwable t nil))\n"
468-
"Command to query inferior Clojure for a function's arglist.")
472+
"Command to query inferior Clojure for a function's arglist."
473+
:type 'string
474+
:group 'inf-clojure)
469475

470-
(defvar inf-clojure-completion-command
476+
(defcustom inf-clojure-completion-command
471477
"(complete.core/completions \"%s\")\n"
472-
"Command to query inferior Clojure for completion candidates.")
478+
"Command to query inferior Clojure for completion candidates."
479+
:type 'string
480+
:group 'inf-clojure)
473481

474-
(defvar inf-clojure-ns-vars-command
482+
(defcustom inf-clojure-ns-vars-command
475483
"(clojure.repl/dir %s)\n"
476-
"Command to show the public vars in a namespace.")
484+
"Command to show the public vars in a namespace."
485+
:type 'string
486+
:group 'inf-clojure)
477487

478-
(defvar inf-clojure-set-ns-command
488+
(defcustom inf-clojure-set-ns-command
479489
"(clojure.core/in-ns '%s)\n"
480-
"Command to set the namespace of the inferior Clojure process.")
490+
"Command to set the namespace of the inferior Clojure process."
491+
:type 'string
492+
:group 'inf-clojure)
481493

482-
(defvar inf-clojure-apropos-command
494+
(defcustom inf-clojure-apropos-command
483495
"(doseq [var (sort (clojure.repl/apropos \"%s\"))]
484496
(println (str var)))\n"
485-
"Command to invoke apropos.")
497+
"Command to invoke apropos."
498+
:type 'string
499+
:group 'inf-clojure)
486500

487-
(defvar inf-clojure-macroexpand-command
488-
"(clojure.core/macroexpand '%s)\n")
501+
(defcustom inf-clojure-macroexpand-command
502+
"(clojure.core/macroexpand '%s)\n"
503+
:type 'string
504+
:group 'inf-clojure)
489505

490-
(defvar inf-clojure-macroexpand-1-command
491-
"(clojure.core/macroexpand-1 '%s)\n")
506+
(defcustom inf-clojure-macroexpand-1-command
507+
"(clojure.core/macroexpand-1 '%s)\n"
508+
:type 'string
509+
:group 'inf-clojure)
492510

493511
;;; Ancillary functions
494512
;;; ===================

0 commit comments

Comments
 (0)