jcollard / elm-mode

Elm mode for emacs
GNU General Public License v3.0
373 stars 67 forks source link

Indentation after parens produces unwanted completion #168

Open debug-ito opened 4 years ago

debug-ito commented 4 years ago

I use elm-mode-0.21.0 on Emacs 25.2.2 (Linux).

Steps to reproduce

  1. Type the following.
let foo = [
          ]
  1. Set the cursor at the beginning of the line just after ']'.
  2. Hit TAB.
  3. Then, it produces
let foo = [
          ]
    foo 

What's this completion of foo? I don't need it.

Exepectation

I just want to indent it to the column of the head of "foo" (the best)

let foo = [
          ]
....

or, I want it to align to the previous indentation (the second best)

let foo = [
          ]
..........