Move machine and platform specific code into new files

Move some config out of custom.el for portability
This commit is contained in:
Emma Turner
2026-05-22 15:02:29 -06:00
parent 1fa1c1b89b
commit 373111e0e8
5 changed files with 48 additions and 38 deletions

13
lisp/DESKTOP-TPC8GRE.el Normal file
View File

@@ -0,0 +1,13 @@
;;; $DOOMDIR/lsip/DESKTOP-TPC8GRE.el -*- lexical-binding: t; -*-
;; Must be set before org loads
(setopt
org-directory
"C:/Users/EmmaTurner/OneDrive - Exponential Technology Group, Inc/Documents/Notes/")
(provide (intern (system-name)))
;; For elisp-autofmt
;; Local variables:
;; elisp-autofmt-load-packages-local: ("use-package" "use-package-core")
;; end:

27
lisp/windows-nt.el Normal file
View File

@@ -0,0 +1,27 @@
;;; $DOOMDIR/lisp/windows-nt.el -*- lexical-binding: t; -*-
;; 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))))
(provide (intern (format "%s" system-type)))
;; For elisp-autofmt
;; Local variables:
;; elisp-autofmt-load-packages-local: ("use-package" "use-package-core")
;; end: