brianc / jade-mode

Emacs major mode for jade template highlighting
MIT License
156 stars 41 forks source link

Tab vs. spaces and maximum indent issues #1

Closed sdether closed 9 years ago

sdether commented 12 years ago

Not sure if it's an emacs config issue or jade-mode issue.

First should jade mode be using tabs or spaces. I noticed that my space indented files should all element names in red, but even your example.jade mixes spaces and tabs.

Second while Shift-Tab works great, Tab always only indents to the very first level and with leading # inserts a space, i.e. in the example.jade file if i hit tab at the beginning of the #container line i get this

    #container
^

[tab]

    #container
     ^

[tab]

#container
^

[tab]

  #container
  ^

[tab]

  #container
   ^

[tab]

  # container
    ^

And after that all the [tab] hitting will not move it further

brianc commented 12 years ago

I don't use emacs anymore actually. I switched to vim. Blasphemy, right? Anyways...feel free to fork this & do as you please. If you'd like to submit pull requests I'd be happy to maintain a "master copy" of the repo.

tofutim commented 12 years ago

I am shocked that you don't use emacs any more.

tjefferson08 commented 9 years ago

So OLD! Closing as stale/fixed, please reopen if you can still reproduce the issue.