Is there any way to get syntax-aware columnar indenting? This is unacceptable:
(let [a 1
b 2])
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?
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
@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.
Here's what I've re-enabled https://github.com/seancorfield/proto-repl-setup/blob/master/keymap.cson
Yeah, ctrl-alt-i is required for automatic indentation which I find strange
ctl-alt-i
is manual indentation -- I have 'enter': 'lisp-paredit:newline' for the auto-indent
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=0You can't see the cursor in that screenshot 😞 but it is on line 13 between the [
and a
on line 12.
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
Right, that's why I posted the link to my keymap
-- there's some you can't live without 🙂