From 1bbfa94847df49a28d69463cb2fa34c2b4bd0b10 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 5 Feb 2023 00:05:03 -0500 Subject: Fix magit and other diff functionality on Windows --- emacs/.emacs.d/init.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'emacs/.emacs.d/init.el') diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index aec45aa..a962927 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -328,6 +328,9 @@ '(window-divider-mode t) '(winner-mode t)) +(if (eq system-type 'windows-nt) + (setq diff-command "C:/Program Files/Git/usr/bin/diff.exe")) + (setq ring-bell-function (lambda () (let ((orig-fg (face-foreground 'mode-line))) -- cgit v1.2.1