-
-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
introduced variable cider-clojure-cli-global-aliases
#3623
introduced variable cider-clojure-cli-global-aliases
#3623
Conversation
Looks like a reasonable start, let's see what @bbatsov thinks as well (note as future steps: there's test coverage for this area - easy to extend) |
I get the intent, but I'm curious why is the current variable considered to be project-specific, given that nothing about it implies it. Might be better to actually add something name If we go with your approach the documentation for the existing defcustom will need to be updated. I also think this will need some coverage in the user manual. |
This would work as well (it's basically the same endgame as proposed in this PR - two variables). However over the last few years we've taught people to set |
Yeah, that's fair. As I never used |
I think that most people have need for 2 things:
-> ideally you want be able to "add" them together |
Agreed - that's what most people would expect. You have the green light for the PR as-is, simply follow the suggestions when you have the chance! |
Hi @behrica, feel free to polish this PR these days, would be good timing in preparation for the next major CIDER release. |
cider.el
Outdated
|
||
(defcustom cider-clojure-cli-global-aliases | ||
nil | ||
"A list of global aliases to include when using the clojure cli. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wording (also the existing docstring for cider-clojure-cli-aliases) seems potentially confusing - one might mistake them for an actual '(":list" ":of" ":strings")
. I'd suggest something like:
Global aliases to include when jacking in with the clojure CLI.
This value should be a string of the form ":foo:bar", and
will be prepended to the value of `cider-clojure-cli-aliases'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also shouldn't the type technically be '(choice string (const nil))
? I see the same empty-string nil-punning for several other defcustoms above, not sure how idiomatic this is in elisp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated comment as proposed.
Regarding the "type" I was not sure about it, so left it as is
…introduceCider-clojure-cli-global-aliases
This PR introduces a variable
cider-clojure-cli-global-aliases
Discussed here: https://clojurians.slack.com/archives/C0617A8PQ/p1708857780583699
It allows a user to have a "global" system wide set of aliases, which get added by cider to each repl start.
It allows to combine "project specific aliases" and" global aliases"