Windows, Emacs, Git Bash, and shell-command

后端 未结 3 564
深忆病人
深忆病人 2021-02-09 18:52

Windows 7. Emacs 24.3.1. Git 1.8.1.msysgit.1. I have the following in my equivalent .emacs file:

(if (equal system-type \'windows-nt)
    (progn (setq explicit-s         


        
3条回答
  •  粉色の甜心
    2021-02-09 19:33

    Try setting both variables to point to the same executable and make sure the path is in exec-path:

    (setq explicit-shell-file-name
          "C:/Program Files (x86)/Git/bin/bash.exe")
    (setq shell-file-name explicit-shell-file-name)
    (add-to-list 'exec-path "C:/Program Files (x86)/Git/bin")
    

提交回复
热议问题