protorepl

2018-04-01T00:51:03.000089Z

Is there any way to get syntax-aware columnar indenting? This is unacceptable:

(let [a 1
  b 2])

2018-04-01T00:59:14.000057Z

After pressing Enter on the first line, I expect the cursor to be on the same column as a. Is this really not possible with Atom?

2018-04-01T01:05:59.000091Z

I figured it out. Apparently you cannot disable the paredit keybindings even if you're not going to use them for the automatic idiomatic lisp indentation

seancorfield 2018-04-01T01:39:53.000067Z

@mfiano I have keybindings disabled for paredit https://www.dropbox.com/s/7s6lh1os8g47x6r/Screenshot%202018-03-31%2018.39.14.png?dl=0 but I have some of them manually re-enabled in my config.

seancorfield 2018-04-01T01:40:48.000022Z

Here's what I've re-enabled https://github.com/seancorfield/proto-repl-setup/blob/master/keymap.cson

2018-04-01T01:42:38.000055Z

Yeah, ctrl-alt-i is required for automatic indentation which I find strange

seancorfield 2018-04-01T01:44:00.000012Z

ctl-alt-i is manual indentation -- I have 'enter': 'lisp-paredit:newline' for the auto-indent

seancorfield 2018-04-01T01:45:13.000009Z

If I write

(let [a 1
and then press enter my cursor is indented to the a, ready to type b 2: https://www.dropbox.com/s/yyd5k0bxg4f4euo/Screenshot%202018-03-31%2018.44.37.png?dl=0

seancorfield 2018-04-01T01:45:57.000066Z

You can't see the cursor in that screenshot 😞 but it is on line 13 between the [ and a on line 12.

2018-04-01T01:46:36.000052Z

That makes more sense, ok. I don't have a custom keymap, just noted that indenation is broken with no lisp-paredit bindings. I was following a post that uses parinfer and so disables the paredit key bindings

seancorfield 2018-04-01T01:47:03.000005Z

Right, that's why I posted the link to my keymap -- there's some you can't live without 🙂