auto-space-mode
is a package that automatically adds spaces between Chinese characters and English words. This behavior ONLY occurs during input.
Simply download auto-space-mode.el
and place it in your Emacs load-path
directory. Then, add the following to your config file:
(require 'auto-space-mode)
(auto-space-mode t)
You can also use add-space-between-chinese-and-english-in-region
and remove-space-between-chinese-and-english-in-region
to add or remove spaces in a region.
There is another package pangu-spacing, that provides similar functionality. The differences between auto-space-mode and pangu-spacing are:
auto-space-mode
ONLY adds spaces during input; it does NOT modify other parts of your document.auto-space-mode
adds ACTUAL spaces instead of using overlays- You can FREELY add or remove those spaces.
This package was developed with the assistance of ChatGPT.