From 6844f34ec6caf70fed1760a649a7421e8a49c998 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 5 Dec 2020 15:54:41 +0100 Subject: [PATCH] Emacs: Set my/reformat-save to nil for diff-mode. --- init.d/programming/common.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.d/programming/common.el b/init.d/programming/common.el index 465ee20..5a136ac 100644 --- a/init.d/programming/common.el +++ b/init.d/programming/common.el @@ -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