emacs 中如何做到better C-a/C-e

spacemacs里的mwim-beginning/end-of-line-or-code挺好的。

在emacs中如何达到这一目的?

直接用这个包?
https://github.com/alezost/mwim.el

 (skip-syntax-forward " " (line-end-position))

你可以看看

(info "(elisp)Syntax Tables") C-x C-e

不要把“解决方案” 留给自己

怎么个 better 法?


返回到行首第一个非空白位置:M-m (back-to-indentation)

M-m能到行首第一个非空字符,但是不better。而且第一个字符是注释的话不能回到代码上。

mwin一个按键做了两件事,所以better。

很可惜,这次也不是你! 加油:muscle:

可以试试crux