[ESS] -> and spaces

Lionel Henry ||one|@hry @end|ng |rom gm@||@com
Thu Nov 26 09:43:52 CET 2020


Hello,

I think this is https://github.com/emacs-ess/ESS/issues/948

Best,
Lionel

On 11/26/20, Kasper Daniel Hansen via ESS-help <ess-help using r-project.org> wrote:
> Thanks for the work on ESS over the ages. I am happy to see that there is
> development happening still.
>
> I have the following code in my .emacs which I use to have the behaviour of
> changing a _ keypress into printing <-:
>
>   (define-key ess-r-mode-map "_" #'ess-insert-assign)
>   (define-key inferior-ess-r-mode-map "_" #'ess-insert-assign)
>
> Now, is this the right way to do it? The thing I see is when I already have
> a space, it adds an extra space, whereas it used to clean it up. Let me
> illustrate (S indicates space)
>   S_
> gets converted into
>   SS<-S
> It used to work like this (a long time ago, before I needed to edit my
> .emacs). Reading the manual, does this have to do with smart-underscore
> being removed?
>
> Best,
> Kasper
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>



More information about the ESS-help mailing list