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

Make cider-eval-map and bind it to C-c C-e instead of C-c C-v #1783

Closed
vspinu opened this issue Jun 13, 2016 · 6 comments
Closed

Make cider-eval-map and bind it to C-c C-e instead of C-c C-v #1783

vspinu opened this issue Jun 13, 2016 · 6 comments

Comments

@vspinu
Copy link
Contributor

vspinu commented Jun 13, 2016

Two related issues.

First, would be good to place C-c C-v eval commands into a specialized map.

Secondly, have you considered using C-c C-e for that map? cider-eval-last-sexp is already bound on C-x C-e, so using C-c C-e seems like a waste of a good key. C-c C-v is very handy and could be dedicated to something more useful than redundant eval commands.

@Malabarba
Copy link
Member

Malabarba commented Jun 13, 2016

First, would be good to place C-c C-v eval commands into a specialized map.

Do you mean actually write a separate keymap for eval commands? We could do that, there's no harm in it, but there isn't much benefit either.

However, I don't see a reason to bind it to some other key. I know a lot of people use C-c C-e, so I'd rather keep the redundancy in this case.

@vspinu
Copy link
Contributor Author

vspinu commented Jun 13, 2016

but there isn't much benefit either.

The benefit is that people can move the whole map around to their favorite key. C-c C-v is too good to be wasted for those rarely used keys.

I know a lot of people use C-c C-e,

It might be too late to change it indeed. My personal opinion is that enforcing a consistent C-x C-e across emacs modes is worth the pain of breaking the backward compatibility.

@bbatsov
Copy link
Member

bbatsov commented Jun 14, 2016

I'd say it's too late for C-c C-e, but eventually we might have all eval commands under C-c C-v for convenience's sake.

@Malabarba
Copy link
Member

Malabarba commented Jun 14, 2016

but there isn't much benefit either.

The benefit is that people can move the whole map around to their favorite key.

PRs welcome. :-)

@bbatsov
Copy link
Member

bbatsov commented Jun 27, 2016

Like @Malabarba said. :-)

@bbatsov
Copy link
Member

bbatsov commented Jul 17, 2016

Fixed in #1805. What remains to be done is to stuff all other eval commands there as well for consistency.

@bbatsov bbatsov closed this as completed Jul 17, 2016
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

No branches or pull requests

3 participants