coldnew / pangu-spacing

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

開啟pangu-spacing-real-insert-separtor會導致buffer-file-name的結果不正確 #23

Open frapples opened 7 years ago

frapples commented 7 years ago

我是使用spacemacs的,它的chinese層裡有這樣配置的代碼:

 (add-hook 'org-mode-hook
           '(lambda ()
            (set (make-local-variable 'pangu-spacing-real-insert-separtor) t)))

我知道,它的功能是給org文本里的中英文之間插入空格,可問題是它也會影響到函數(buffer-file-name)。 如果你的org文件路徑是中英混搭的,那麼函數的結果也會插入額外的空格,這顯然就不對了。

coldnew commented 6 years ago

duplicate issue in #10