Fork me on GitHub
#protorepl
<
2018-04-01
>
Michael Fiano00:04:03

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

(let [a 1
  b 2])

Michael Fiano00:04:14

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?

Michael Fiano01:04:59

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

seancorfield01:04:53

@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.

Michael Fiano01:04:38

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

seancorfield01:04:00

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

seancorfield01:04:13

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

seancorfield01:04:57

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

Michael Fiano01:04:36

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

seancorfield01:04:03

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