emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
620 stars 162 forks source link

How to remove ESS style completely? #1286

Closed TheDohn closed 3 months ago

TheDohn commented 6 months ago

Spacemacs user here, so I won't even try bother you all with my config. In short, there seems to be some sort of interaction between evil-paste (from evil mode https://github.com/emacs-evil/evil) and ess-r-mode such that whenever I paste text, it gets formatted by ess. I am not clear if this is a feature or a bug, but it isn't really the behavior l desire. I have tried setting the ess-style-alist to a variety of values and none of them (including the custom option OWN) are what I want.

In short: Is there a way to completely disable the styling/linting of ESS mode?

lionel- commented 6 months ago

I'm an evil user as well and I'm not sure what you mean. The style you're referring to is only used when Emacs indents, but I don't think pasting is supposed to invoke indentation?

TheDohn commented 6 months ago

Thanks for the response! It is a bit hard to reproduce sometimes. But you can see in this video, when I yank some text, move down, and paste it, the ggtitle(...) shifts to the left (which was from the yanked region), which is very strange. I assume something about spacemacs is activating a hook somewhere, but it is hard to track down... So my strategy for the time being was to see if I could at least completely shut off ESS formating (?) and see if that fixes it. Sorry if my original message was vague, my intention was to understand if there was a way to just shut off ESS formatting itself as part of my experimentation and not bother folks with the details of my problem.

I should add that while I am not quite sure about the words to describe ESS formating, I am sure it has something to do with ESS + my config + spacemacs, as when I just turn a buffer to text-mode there is no indent behavior.

https://github.com/emacs-ess/ESS/assets/43042967/6bf2fc4e-7524-4150-801b-557a9f50a1d8

TheDohn commented 3 months ago

This problem is showing up in other modes for me, so it isn't an ESS issue. Sorry for the confusion, but it is very very hard to reproduce, and at first seemed to only impact ESS.