Files
doom-emacs-config/lisp/windows-nt.el
Emma Turner e8c5158000 Add new configs
Updated existing configs to actually provide the correct symbols
2026-05-23 00:01:15 -06:00

29 lines
946 B
EmacsLisp

;;; $DOOMDIR/lisp/windows-nt.el --- Windows specific configuration -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:
;; Windows path
(when (eq system-type 'windows-nt)
;; https://emacs.stackexchange.com/a/29949
;; Make sure Unix tools are in front of `exec-path`
;; (let ((bash (executable-find "bash")))
;; (when bash
;; (push (file-name-directory bash) exec-path)))
;;
;; version of bash found is incorrect, so just use the system git path instead
(push "C:/Program Files/Git/usr/bin/" exec-path)
;; Update PATH from exec-path
(let ((path
(mapcar
'file-truename
(append exec-path (split-string (getenv "PATH") path-separator t)))))
(setenv "PATH" (mapconcat 'identity (delete-dups path) path-separator))))
;; For elisp-autofmt
;; Local variables:
;; elisp-autofmt-load-packages-local: ("use-package" "use-package-core")
;; end:
(provide 'windows-nt)
;;; windows-nt.el ends here