In my case, this was an interaction with flymake-mode. ESS turns on flymake-mode, which then modifies the left margin. To turn off flymake, you can use: (setq ess-use-flymake nil) - tyler