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

后端 未结 3 1325
深忆病人
深忆病人 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:22

    Like suggested in this answer the deleting-trailing-whitespace hook might have been added to the before-save-hook hook.

    To disable this eval (remove-hook 'before-save-hook 'delete-trailing-whitespace) (type M-:).

提交回复
热议问题