[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure 63c2f9e 082/313: Add possibility to customize
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure 63c2f9e 082/313: Add possibility to customize more vars |
Date: |
Wed, 11 Aug 2021 09:59:51 -0400 (EDT) |
branch: elpa/inf-clojure
commit 63c2f9edef41f97d1dd877b6bfaa018b94e89d8a
Author: Erik Assum <erik@assum.net>
Commit: Erik Assum <erik@assum.net>
Add possibility to customize more vars
Planck, https://github.com/mfikes/planck, the Clojurscript
repl on OSX, uses somewhat different commands to achieve
things like set-ns, apropos, dir etc. This commit
lets the user customize these commands.
---
inf-clojure.el | 54 ++++++++++++++++++++++++++++++++++++------------------
1 file changed, 36 insertions(+), 18 deletions(-)
diff --git a/inf-clojure.el b/inf-clojure.el
index 02787f6..7ced672 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -450,45 +450,63 @@ Used by this command to determine defaults."
;;; Command strings
;;; ===============
-(defvar inf-clojure-var-doc-command
+(defcustom inf-clojure-var-doc-command
"(clojure.repl/doc %s)\n"
- "Command to query inferior Clojure for a var's documentation.")
+ "Command to query inferior Clojure for a var's documentation."
+ :type 'string
+ :group 'inf-clojure)
-(defvar inf-clojure-var-source-command
+(defcustom inf-clojure-var-source-command
"(clojure.repl/source %s)\n"
- "Command to query inferior Clojure for a var's source.")
+ "Command to query inferior Clojure for a var's source."
+ :type 'string
+ :group 'inf-clojure)
-(defvar inf-clojure-arglist-command
+(defcustom inf-clojure-arglist-command
"(try
(:arglists
(clojure.core/meta
(clojure.core/resolve
(clojure.core/read-string \"%s\"))))
(catch Throwable t nil))\n"
- "Command to query inferior Clojure for a function's arglist.")
+ "Command to query inferior Clojure for a function's arglist."
+ :type 'string
+ :group 'inf-clojure)
-(defvar inf-clojure-completion-command
+(defcustom inf-clojure-completion-command
"(complete.core/completions \"%s\")\n"
- "Command to query inferior Clojure for completion candidates.")
+ "Command to query inferior Clojure for completion candidates."
+ :type 'string
+ :group 'inf-clojure)
-(defvar inf-clojure-ns-vars-command
+(defcustom inf-clojure-ns-vars-command
"(clojure.repl/dir %s)\n"
- "Command to show the public vars in a namespace.")
+ "Command to show the public vars in a namespace."
+ :type 'string
+ :group 'inf-clojure)
-(defvar inf-clojure-set-ns-command
+(defcustom inf-clojure-set-ns-command
"(clojure.core/in-ns '%s)\n"
- "Command to set the namespace of the inferior Clojure process.")
+ "Command to set the namespace of the inferior Clojure process."
+ :type 'string
+ :group 'inf-clojure)
-(defvar inf-clojure-apropos-command
+(defcustom inf-clojure-apropos-command
"(doseq [var (sort (clojure.repl/apropos \"%s\"))]
(println (str var)))\n"
- "Command to invoke apropos.")
+ "Command to invoke apropos."
+ :type 'string
+ :group 'inf-clojure)
-(defvar inf-clojure-macroexpand-command
- "(clojure.core/macroexpand '%s)\n")
+(defcustom inf-clojure-macroexpand-command
+ "(clojure.core/macroexpand '%s)\n"
+ :type 'string
+ :group 'inf-clojure)
-(defvar inf-clojure-macroexpand-1-command
- "(clojure.core/macroexpand-1 '%s)\n")
+(defcustom inf-clojure-macroexpand-1-command
+ "(clojure.core/macroexpand-1 '%s)\n"
+ :type 'string
+ :group 'inf-clojure)
;;; Ancillary functions
;;; ===================
- [nongnu] elpa/inf-clojure c9f2f63 036/313: Fix eval defun keybinding, (continued)
- [nongnu] elpa/inf-clojure c9f2f63 036/313: Fix eval defun keybinding, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 75f6fab 039/313: Update copyright years, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 8594a58 042/313: Add new-line mark after inf-clojure-arglist-command, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure d2bedf9 048/313: Fix the installation instructions in the Elisp snippet, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7aa0299 062/313: Refactoring, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 64263f7 045/313: Fix a typo, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 8247c43 067/313: Add ElDoc info to README, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 6758a31 069/313: Fix for older Emacs, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 0a7c61b 079/313: Fix a docstring, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 0259801 080/313: Kill a trailing space, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 63c2f9e 082/313: Add possibility to customize more vars,
ELPA Syncer <=
- [nongnu] elpa/inf-clojure d9e4400 087/313: Tweak the README a bit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 117d8cb 090/313: Bump the clojure-mode and Emacs deps, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e12db12 091/313: Fix prompt being included in input history, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e6a4ef3 093/313: Add some handy GitHub templates to improve the contribution process, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 6a354dc 097/313: Add defcustom `inf-clojure-prompt-on-set-ns` (#46), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 6e55048 099/313: [Fix #42] Add a defcustom controlling the window in which the REPL buffer is displayed, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 872c143 101/313: Handle properly ANSI color escape sequences in the REPL, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 2e1dd6c 108/313: Update the "Usage" section of the README, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 916ec97 106/313: Infer the customization group from defcustom names, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure a36d2a0 111/313: Remove unwanted ansi chars from the REPL output, ELPA Syncer, 2021/08/11