purcell / emacs.d

An Emacs configuration bundle with batteries included
BSD 2-Clause "Simplified" License
6.82k stars 2.04k forks source link

In eshell-mode , If I try to type string within "", Emacs will add space automaticly between each char of this string. #818

Closed yuanli186 closed 1 year ago

yuanli186 commented 1 year ago

Hello, purcell!

The issue: In eshell-mode , If I try to type string within "", Emacs will add space automaticly between each char of this string. i.e "helloword" will in below format:

" h e l l o w o r l d "

My emacs env: GNU Emacs 28.1 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) of 2022-05-12

How to stop the space input action? Thanks!

purcell commented 1 year ago

This was a strange side-effect of enabling corfu-auto globally. I've solved the issue by unsetting that in eshell-mode, but I wonder if @minad has any thoughts about this?

minad commented 1 year ago

@purcell You can enable corfu-auto globally. But for Eshell you have to install workarounds, see https://github.com/minad/corfu#completing-in-the-eshell-or-shell. Unfortunately the pcompletr mechanism is slightly broken at least until Emacs 28. My cape package provides advices which fix this.

purcell commented 1 year ago

Thanks, looks like my quick fix might not be sufficient then. I'll follow your pointers. 🙏

yuanli186 commented 1 year ago

@purcell @minad Thank you very much for your help!