Skip to content
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

Set REPL type from startup form, prompt, or defcustom at startup #174

Merged
merged 1 commit into from
Apr 25, 2020

Conversation

dpsutton
Copy link
Contributor

Set REPL type at startup from startup form. Defcustom to override or set if custom startup form is used and otherwise prompt user for repl type.

Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):

  • The commits are consistent with our contribution guidelines
  • The new code is not generating bytecode or M-x checkdoc warnings
  • You've updated the changelog (if adding/changing user-visible functionality)
  • You've updated the readme (if adding/changing user-visible functionality)

Thanks!

also prevent these when `inf-clojure` is invoked with a prefix arg
There's some project detection but that's becoming less and less useful as time goes on. Shadow, lein, deps.edn can all easily be mixed in the same project. And then lumo, planck, or bb scripts could live side by side. Rather than trying to guess the project type, I think i'd like to mimic geiser's style of handling multiple scheme backends. Perhaps ~m-x inf-clojure-run-planck~ and similar could help out.

Some considerations:
- is this path aware? IE, don't show an option to run planck, lumo, etc, if they aren't visible or installed?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imho to keep it simple not to have path inspection is a good start.


Some considerations:
- is this path aware? IE, don't show an option to run planck, lumo, etc, if they aren't visible or installed?
- should it have a rebuild function so that user registered implementations can show up in the ~m-x~ menu as well?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we go for the classic defcustom as list approach and maybe a register function like lsp imho yes

(with-current-buffer (process-buffer proc)
(setq-local inf-clojure-repl-type type-to-set))))

(defun inf-clojure--set-repl-type (proc)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Farewell, it has served as well-ish 😁

@dpsutton dpsutton deleted the auto-repl-type branch April 25, 2020 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants