eschulte / rinari

Rinari Is Not A Rails IDE (it is an Emacs minor mode for Rails)
http://rinari.rubyforge.org
GNU General Public License v3.0
412 stars 68 forks source link

format buffer is very slowly in rhtml-mode. #91

Closed zw963 closed 8 years ago

zw963 commented 8 years ago

When I run following command in one slightly biger erb file opened with rhtml-mode. will cause a notable times deay to wait format this buffer correct.

(indent-region (point-min) (point-max))
zw963 commented 8 years ago

BTW: The same file, if use web-mode, file got indented very quickly.

purcell commented 8 years ago

rhtml-mode is not part of rinari, sorry. Did you mean to report this here instead: https://github.com/eschulte/rhtml ?

zw963 commented 8 years ago

That guy seem like disappeared from earth ...

that why i create issues here ...

fine, just forget it.

dcorking commented 8 years ago

@zw963 Billy, try mmm-mode, for example the ERB configuration in purcell/emacs.d

purcell commented 8 years ago

Yup, works pretty well for me. Not perfect, but particularly if you've got a very recent Emacs version, it's a good option.

zw963 commented 8 years ago

Cool, in fact I had star your's dotfiles for a long time.

I have personal defined config too with all needed package saved in local directory, so many dotfiles help me a lot for this.

I never use mmm-mode, but i have used multi-web-mode for a while, i have a question about this: Does mmm-mode is work well with undo-tree ? multi-web-mode is fine, But, when i switch from one mode(html-mode) to another mode(js-mode), all undo history is clean up, that is the thing i can not accept.

thanks

purcell commented 8 years ago

Does mmm-mode is work well with undo-tree ?

Yes, should be fine.