windows で magit を使いはじめるまで

本文

;; M-x eval-buffer
(setq load-path (cons (expand-file-name ".") load-path))
(byte-compile-file "50magit.el")
(byte-compile-file "50magit.elc")
(byte-compile-file "magit-bisect.el")
(byte-compile-file "magit-key-mode.el")
(byte-compile-file "magit-stgit.el")
(byte-compile-file "magit-svn.el")
(byte-compile-file "magit-topgit.el")
(byte-compile-file "magit.el")
(byte-compile-file "contrib/magit-classic-theme.el")
(byte-compile-file "contrib/magit-simple-keys.el")
  • load-path が通ってるところにまるごと移動
  • .emacs の設定
(require 'magit)

(if (eq system-type 'windows-nt)
    (setq magit-git-executable "C:/Program Files (x86)/Git/bin/git.exe"))
  • これでとりあえず動く

詳しい使い方はこれから…