Emacs: Set my/reformat-save to nil for diff-mode.

This commit is contained in:
tastytea 2020-12-05 15:54:41 +01:00
parent 2b41312a29
commit 6844f34ec6
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-12-05T10:55:12+0100>
;; Time-stamp: <2020-12-05T15:53:29+0100>
;;; Commentary:
@ -255,5 +255,9 @@ year if mode is derived from prog-mode."
:config (put 'bug-reference-url-format 'safe-local-variable #'stringp)
:hook (prog-mode . bug-reference-prog-mode))
(use-package diff
:straight (:type built-in)
:hook (diff-mode . (lambda () (setq-local my/reformat-save nil))))
(provide 'programming/common)
;;; common.el ends here