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

Parinfer layer #5574

Open
gilch opened this Issue Mar 23, 2016 · 11 comments

Comments

10 participants
@gilch
Contributor

gilch commented Mar 23, 2016

Consider adding a parinfer layer.

Parinfer is like a more powerful adjust-parens, and also includes a slightly less aggressive version of aggressive-indent-mode as a separate mode.

Lisp users prefer to read their code by indentation rather than by counting delimiters. Parinfer makes editing Lisp feel more like editing Python. Parinfer gives you most of the power of paredit (and evil-cleverparens for that matter), but is much easier to learn as evidenced by its inclusion in Nightcode.

There is already a parinfer package for emacs. It may need a little work. The inference engine used by other editors seems to work correctly, and the package includes a direct translation of it into emacs lisp. But the emacs integration doesn't work as well as the other editors I've tried. Sometimes the point doesn't end up where I expect. It may need some adjustments to play nice with evil. LightTable has independent plugins for both Vim keys and Parinfer that work well together, so I don't expect this to be a problem for long. These are minor issues the spacemacs community could fix quickly once a layer is available for testing.

@a13ph

This comment has been minimized.

Show comment
Hide comment
@a13ph

a13ph Jul 27, 2016

Those points might also be of use to those interesting on hacking or using parinfer:
https://github.com/noctuid/parinfer-notes (assuming they are still relevant)

a13ph commented Jul 27, 2016

Those points might also be of use to those interesting on hacking or using parinfer:
https://github.com/noctuid/parinfer-notes (assuming they are still relevant)

@gilch

This comment has been minimized.

Show comment
Hide comment
@gilch

gilch Jul 27, 2016

Contributor

They're not. Ignore the above article. It's unfairly biased and factually incorrect. I could rebut it point-by-point (and will, if necessary) but I don't want to encourage anyone else to read it.

Contributor

gilch commented Jul 27, 2016

They're not. Ignore the above article. It's unfairly biased and factually incorrect. I could rebut it point-by-point (and will, if necessary) but I don't want to encourage anyone else to read it.

@dilzeem

This comment has been minimized.

Show comment
Hide comment
@dilzeem

dilzeem Aug 7, 2016

@gilch Have you been able to hack something together on spacemacs?

dilzeem commented Aug 7, 2016

@gilch Have you been able to hack something together on spacemacs?

@gilch

This comment has been minimized.

Show comment
Hide comment
@gilch

gilch Aug 8, 2016

Contributor

There's a more recent port of Parinfer to elisp now: https://github.com/oakmac/parinfer-elisp

It's just the inference engine, but it has an extensive test suite. The question is when exactly to invoke these functions (and when not to) to make it cooperate with Spacemac's other packages, especially Evil.

Contributor

gilch commented Aug 8, 2016

There's a more recent port of Parinfer to elisp now: https://github.com/oakmac/parinfer-elisp

It's just the inference engine, but it has an extensive test suite. The question is when exactly to invoke these functions (and when not to) to make it cooperate with Spacemac's other packages, especially Evil.

@JAremko

This comment has been minimized.

Show comment
Hide comment
@JAremko

JAremko Sep 20, 2016

Collaborator

42 👍 Spacemacs needs its hero :shipit:

Collaborator

JAremko commented Sep 20, 2016

42 👍 Spacemacs needs its hero :shipit:

@JAremko

This comment has been minimized.

Show comment
Hide comment
@JAremko

JAremko Sep 20, 2016

Collaborator

https://www.youtube.com/watch?v=mqjDOSKyIcc

They're beating us! Unacceptable 👿

Collaborator

JAremko commented Sep 20, 2016

https://www.youtube.com/watch?v=mqjDOSKyIcc

They're beating us! Unacceptable 👿

@zhxchen17

This comment has been minimized.

Show comment
Hide comment
@zhxchen17

zhxchen17 Sep 30, 2016

Just wanna mention there is another promising port for parinfer at https://github.com/DogLooksGood/parinfer-mode

zhxchen17 commented Sep 30, 2016

Just wanna mention there is another promising port for parinfer at https://github.com/DogLooksGood/parinfer-mode

@DogLooksGood

This comment has been minimized.

Show comment
Hide comment
@DogLooksGood

DogLooksGood Oct 10, 2016

I've add a PR for parinfer layer, #7339.

DogLooksGood commented Oct 10, 2016

I've add a PR for parinfer layer, #7339.

@achikin

This comment has been minimized.

Show comment
Hide comment
@achikin

achikin May 29, 2017

Is it going to be merged at some point?

achikin commented May 29, 2017

Is it going to be merged at some point?

@JAremko

This comment has been minimized.

Show comment
Hide comment
@JAremko

JAremko May 29, 2017

Collaborator

@achikin no!

Guess why 😉

Collaborator

JAremko commented May 29, 2017

@achikin no!

Guess why 😉

@achikin

This comment has been minimized.

Show comment
Hide comment
@achikin

achikin commented May 29, 2017

@JAremko :))) Sorry.

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