Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Enter/Return behaviour #23

Open
GetContented opened this issue Aug 1, 2015 · 2 comments
Open

Enter/Return behaviour #23

GetContented opened this issue Aug 1, 2015 · 2 comments

Comments

@GetContented
Copy link

When I press newline inside an open paren, the cursor should drop to the same indentation level (unless at the end of a close-paren, but it seems to go to the start of the line preceding it. How would I change this behaviour? Or is it not really part of the language-clojure package? I'm not really sure where else to ask if that's the case, so would appreciate any hints on where to ask.

@WalterGR
Copy link

WalterGR commented Jan 2, 2016

Note that this also applies to brackets, not just parens.

If I type

(loop [result []

and press Enter/Return, I expect the new line to be indented and my cursor positioned as follows:

(loop [result []
       _

but the cursor is positioned at the beginning of the new line.

@GetContented
Copy link
Author

Yes. All brackets, rounded (parens), square, curly (braces) etc.

@oakmac oakmac mentioned this issue Feb 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants