brianc / jade-mode

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

Improved sws indent and stylus syntax highlight #11

Closed jpallari closed 12 years ago

jpallari commented 12 years ago

I got annoyed how 'sws-indent-line always added extra indentation each time I did 'newline-and-indent. Here's my attempt at fixing it while still keeping the old code as compatible as possible.

I also added single quote syntax highlight to stylus mode.

jpallari commented 12 years ago

By the way, 'beginning-of-line-text in 'sws-point-to-bot doesn't always work the way you'd expect. For example, the character "-" isn't interpreted as text, so 'beginning-of-line-text skips past that character if the line text begins with it. I'll see if I can fix it.

brianc commented 12 years ago

thank you!