coldnew / pangu-spacing

emacs minor-mode to add space between Chinese/Japanese/Korean and English characters.
147 stars 18 forks source link

I dont think that the whitespaces are really added to the contents, right? #3

Closed cmal closed 10 years ago

cmal commented 10 years ago

this is an excellent idea. I think you should add something in the README.md to show people that the whitespaces are not really added to the contents. It just looks like to do so. Is that right? by the way, Is it evitable that this mode will slow down Emacs if the file is large(e.g. 1MB or more)? I don't know Lisp, but I think if this mode only change or looks like to change (or both) the contents that are current visible, it will not be so slow. will that be a better way to do this? thanks for your sharing!

cmal commented 10 years ago

If it does not really change the contents, I think that modifying the contents that are current visible is a better idea. right? thanks.

coldnew commented 10 years ago

Yes, pangu-spacing-mode add a "virtual" whitespace to separate Chinese and English characters. However, you can customized it to make the virtual whitespace to be a real one.

pangu-spacing-mode will search between buffer-start to buffer-end.Currently I only test it under my emacs config ,which has about 6,000 lines (220Kb) and doesn't has any speed issue. If you have the speed issue, feel free to submit bug and please also send the sample you test. Thank you