1
0
Fork 0

Fixed: build and start commands for win32 and unix platforms

Browse Source
This commit is contained in:
rhjr 2026-01-21 08:04:49 +01:00
parent 1a5c11dec0
commit 22af67556b

View File

@ -17,6 +17,16 @@
"C:\\Users\\Rhjr\\Home\\" "C:\\Users\\Rhjr\\Home\\"
"~")) "~"))
(defconst rhjr/build-command
(if (eq system-type 'windows-nt)
"build.bat"
"./build.sh"))
(defconst rhjr/start-command
(if (eq system-type 'windows-nt)
"start.bat"
"./start.sh"))
;; rhjr/archives ;; rhjr/archives
(require 'package) (require 'package)
(setq package-user-dir rhjr/paths/packages (setq package-user-dir rhjr/paths/packages
@ -311,10 +321,10 @@
(other-window 1)) (other-window 1))
(global-set-key [f1] (lambda () (interactive) (global-set-key [f1] (lambda () (interactive)
(run-project-command "build.bat"))) (run-project-command rhjr/build-command)))
(global-set-key [f2] (lambda () (interactive) (global-set-key [f2] (lambda () (interactive)
(run-project-command "start.bat"))) (run-project-command rhjr/start-command)))
(global-set-key [f3] #'set-project-command-arg) (global-set-key [f3] #'set-project-command-arg)
@ -325,8 +335,8 @@
;;;rhjr/styling ;;;rhjr/styling
(set-face-attribute 'default nil (set-face-attribute 'default nil
:family "Consolas" :family "Cascadia Code"
:height 150 :height 135
:weight 'normal) :weight 'normal)
(custom-set-variables (custom-set-variables