My emacs deletes trailing white space. How can I disable this behaviour?

后端 未结 3 1329
深忆病人
深忆病人 2021-01-04 12:45

Upon save ( I think ), my emacs is deleting trailing white space. I don\'t want to commit those changes, only the parts I manually modify. Is there a way to disable that beh

3条回答
  •  爱一瞬间的悲伤
    2021-01-04 13:35

    Take a look at ethan-wspace. It will clean up any whitespace that you made dirty yourself. However any incorrect whitespace that was there when you opened the file is left intact. This way you can avoid those messy diffs full of whitespace changes

提交回复
热议问题