Set the magit git executable in windows
This commit is contained in:
parent
daf8391edf
commit
197e3040c3
1 changed files with 8 additions and 1 deletions
9
emacs/.emacs.d/site-lisp/oni-windows-nt.el
Executable file → Normal file
9
emacs/.emacs.d/site-lisp/oni-windows-nt.el
Executable file → Normal file
|
@ -25,9 +25,13 @@
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(eval-when-compile
|
(eval-when-compile
|
||||||
|
(require 'package)
|
||||||
|
(package-initialize)
|
||||||
|
|
||||||
(require 'find-dired)
|
(require 'find-dired)
|
||||||
(require 'ivy)
|
(require 'ivy)
|
||||||
(require 'grep))
|
(require 'grep)
|
||||||
|
(require 'magit))
|
||||||
|
|
||||||
(defun oni-windows-nt--disable-ivy (orig-fun &rest args)
|
(defun oni-windows-nt--disable-ivy (orig-fun &rest args)
|
||||||
"Disable ivy while running ORIG-FUN with ARGS."
|
"Disable ivy while running ORIG-FUN with ARGS."
|
||||||
|
@ -58,5 +62,8 @@
|
||||||
(with-eval-after-load 'grep
|
(with-eval-after-load 'grep
|
||||||
(add-function :around (symbol-function 'grep-read-files) #'oni-windows-nt--disable-ivy))
|
(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)
|
(provide 'oni-windows-nt)
|
||||||
;;; oni-windows-nt.el ends here
|
;;; oni-windows-nt.el ends here
|
||||||
|
|
Loading…
Reference in a new issue