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

clojure: infinite loop when entering a closing parenthesis #3020

Closed
lincoln310 opened this issue Sep 14, 2015 · 3 comments
Closed

clojure: infinite loop when entering a closing parenthesis #3020

lincoln310 opened this issue Sep 14, 2015 · 3 comments

Comments

@lincoln310
Copy link

Hi, i used clojure layer, and meet this problem:
i typed in "(map #(conj % 1) #{2 3}". You see, i missed a ")" to close it. And then i pressed "enter", then it looped forever, no response for any input, and i have to kill emacs using system tools.

When i use emacs-live, it auto complete the () {} [], how to implement it in spacemacs?

By the way, the colors of () in cider repl is only white, not 7 colors.

@geo7
Copy link
Contributor

geo7 commented Sep 14, 2015

note

The title for this issue is a touch misleading, if you could change it to include something along the lines of "handing matched parenthesis" and "syntax highlighting in the Cider REPL" you might get a more accurate response 👍

Also, here's a link to markdown in Gitter (it's hard to explain here as it gets swallowed up ;) )


SPC t p runs the command spacemacs/toggle-smartparens, which will
automatically put ) after a (.

I'm not sure if this is what you're after. You can add a hook to a major mode using

(add-hook '<major-mode> '<function>)

From the docs -

It is possible to enable it easily for /all programming modes/ with the variable
dotspacemacs-smartparens-strict-mode of you ~/.spacemacs.

I'm not sure about the colors of the REPL for cider I've not used it

@syl20bnr syl20bnr changed the title forever loop clojure: infinite loop when entering a closing parenthesis Sep 14, 2015
@lincoln310
Copy link
Author

Thank you for correct me, and sorry for bad English.
The smartparens do helped, thank you very much.
But it is still a bug, right? I don't know how to fix it, otherwise i will do it.....

@TheBB
Copy link
Collaborator

TheBB commented Aug 28, 2016

Hi @lincoln310. Nobody has replied here for almost a year and it seems nobody can reproduce this problem. Therefore I'm closing this. Feel free to reopen with more information if this is still an issue.

@TheBB TheBB closed this as completed Aug 28, 2016
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

4 participants