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

Add argument to cider-jack-in to allow specification of profiles #327

Closed
hugoduncan opened this issue May 26, 2013 · 14 comments
Closed

Add argument to cider-jack-in to allow specification of profiles #327

hugoduncan opened this issue May 26, 2013 · 14 comments

Comments

@hugoduncan
Copy link
Member

When starting a repl for a project, it is useful to be able to specify profiles that should be used.

I'm not sure how this would interact with the current prefix argument that allows specification of the project.

@lexfrl
Copy link

lexfrl commented May 12, 2014

+1

@bbatsov
Copy link
Member

bbatsov commented May 14, 2014

Fixed in #544.

@bbatsov bbatsov closed this as completed May 14, 2014
@WIZARDELF
Copy link

why cannot i use cider-jack-in-with-profile now?

@abcdw
Copy link

abcdw commented Dec 28, 2016

I'm not sure, but maybe developers thinks that cider-lein-parameters variable is enought for such task.

http://stackoverflow.com/questions/18304271/how-do-i-choose-switch-leiningen-profiles-with-emacs-nrepl

@bbatsov
Copy link
Member

bbatsov commented Dec 29, 2016

Exactly.

@bherrmann7
Copy link

bherrmann7 commented Jul 7, 2017

Huh... I'm running emacs25 with cider from melpa, but it wont let me interactively invoke set-variable and supply "cider-lein-parameters" ... it says variable does not exist... However, adding this line to my .emacsrc worked fine!

(set-variable 'cider-lein-parameters "with-profile +jetty repl")

@xiongtx
Copy link
Member

xiongtx commented Jul 7, 2017

@bherrmann7 The variable is cider-lein-parameters. You're missing an e in parametrs.

@bherrmann7
Copy link

bherrmann7 commented Jul 8, 2017

@xiongtx Thanks, I corrected my comment. I was trying to set the correct value. It seems like emacs doesnt like you to set variables that arent already in existance. Perhaps something like make-variable instead of set ?

@xiongtx
Copy link
Member

xiongtx commented Jul 8, 2017

Did you (require 'cider) to load the variable?

@bherrmann7
Copy link

@xiongtx Thanks again for taking the time. So, I'm doing exactly this on ubuntu 17.04,
$ emacs
I TYPE: M-x
I TYPE: set-variable
Emacs prompts: Set Variable:
I TYPE: cider-lein-parameters
Emacs says: [No Match]

@xiongtx
Copy link
Member

xiongtx commented Jul 8, 2017

Try this:

  1. Start Emacs
  2. In *scratch* buffer, type (require 'cider), put cursor after ), and eval-last-sexp (C-x C-e).
  3. set-variable...cider-lein-parameters

@bherrmann7
Copy link

Thanks @xiongtx That did work!

@xiongtx
Copy link
Member

xiongtx commented Jul 10, 2017

Cool, so put (require 'cider) in your init file before the part where you set cider-lein-parameters. Or use-package if you're into that.

@jiacai2050
Copy link
Contributor

I add a function to my emacs init script to deal with this issue, see:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants