diff options
author | jao <jao@gnu.org> | 2025-09-22 02:18:53 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2025-09-22 02:18:53 +0100 |
commit | f111725d0543c491e694b40de1825d8535c1e1f4 (patch) | |
tree | 82897a0f4c4e71e2b867e7b64a4482648328c969 | |
parent | aa66053af17e4dcb91284fe18f1264949da4f657 (diff) | |
download | elibs-f111725d0543c491e694b40de1825d8535c1e1f4.tar.gz elibs-f111725d0543c491e694b40de1825d8535c1e1f4.tar.bz2 |
brew environment in separate custom file
-rw-r--r-- | custom/jao-custom-brew.el | 21 | ||||
-rw-r--r-- | init.el | 12 |
2 files changed, 22 insertions, 11 deletions
diff --git a/custom/jao-custom-brew.el b/custom/jao-custom-brew.el new file mode 100644 index 0000000..6f57e65 --- /dev/null +++ b/custom/jao-custom-brew.el @@ -0,0 +1,21 @@ +;;; jao-custom-brew.el --- Setup for homebrew -*- lexical-binding: t; -*- + +(setenv "HOMEBREW_PREFIX" "/opt/homebrew") +(setenv "HOMEBREW_CELLAR" "/opt/hombrew/Cellar") +(setenv "HOMEBREW_REPOSITORY" "/opt/homebrew") + +(setenv "GUILE_LOAD_PATH" "/opt/homebrew/share/guile/site/3.0") +(setenv "GUILE_LOAD_COMPILED_PATH" "/opt/homebrew/lib/guile/3.0/site-ccache") +(setenv "GUILE_SYSTEM_EXTENSIONS_PATH" "/opt/homebrew/lib/guile/3.0/extensions") + +(dolist (p '("/Applications/Emacs.app/Contents/MacOS/bin-arm64-11" + "/Applications/Emacs.app/Contents/MacOS/libexec-arm64-11" + "/opt/homebrew/sbin" + "/opt/homebrew/bin" + "~/.local/bin")) + (jao-exec-path p)) + +(add-to-list 'Info-directory-list "/opt/homebrew/share/info") + +(provide 'jao-custom-brew) +;;; jao-custom-brew.el ends here @@ -103,17 +103,7 @@ (require 'info) (add-to-list 'Info-directory-list jao-info-dir) -(jao-when-darwin - (setenv "HOMEBREW_PREFIX" "/opt/homebrew") - (setenv "HOMEBREW_CELLAR" "/opt/hombrew/Cellar") - (setenv "HOMEBREW_REPOSITORY" "/opt/homebrew") - (dolist (p '("/Applications/Emacs.app/Contents/MacOS/bin-arm64-11" - "/Applications/Emacs.app/Contents/MacOS/libexec-arm64-11" - "/opt/homebrew/sbin" - "/opt/homebrew/bin" - "~/.local/bin")) - (jao-exec-path p)) - (add-to-list 'Info-directory-list "/opt/homebrew/share/info")) +(jao-when-darwin (require 'jao-custom-brew)) (jao-exec-path (expand-file-name "bin" jao-emacs-dir)) |