From 197e3040c3f0f102803ff769a6ee2a301a0c0f0d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 19 Jun 2018 11:13:05 -0700 Subject: [PATCH] Set the magit git executable in windows --- emacs/.emacs.d/site-lisp/oni-windows-nt.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) mode change 100755 => 100644 emacs/.emacs.d/site-lisp/oni-windows-nt.el diff --git a/emacs/.emacs.d/site-lisp/oni-windows-nt.el b/emacs/.emacs.d/site-lisp/oni-windows-nt.el old mode 100755 new mode 100644 index dac328d..427bbb6 --- a/emacs/.emacs.d/site-lisp/oni-windows-nt.el +++ b/emacs/.emacs.d/site-lisp/oni-windows-nt.el @@ -25,9 +25,13 @@ ;;; Code: (eval-when-compile + (require 'package) + (package-initialize) + (require 'find-dired) (require 'ivy) - (require 'grep)) + (require 'grep) + (require 'magit)) (defun oni-windows-nt--disable-ivy (orig-fun &rest args) "Disable ivy while running ORIG-FUN with ARGS." @@ -58,5 +62,8 @@ (with-eval-after-load 'grep (add-function :around (symbol-function 'grep-read-files) #'oni-windows-nt--disable-ivy)) +(with-eval-after-load 'magit + (setq magit-git-executable "c:/msys64/usr/bin/git.exe")) + (provide 'oni-windows-nt) ;;; oni-windows-nt.el ends here