From de448b26fef769747a6d13c931627efc6f20bb88 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 15 Sep 2025 06:04:17 +0100 Subject: mac: brew environment --- init.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 406fa2b..d432632 100644 --- a/init.el +++ b/init.el @@ -79,7 +79,8 @@ (defun jao-exec-path (dir) (let ((fn (expand-file-name dir))) - (add-to-list 'exec-path fn nil) + (setq exec-path (remove fn exec-path)) + (add-to-list 'exec-path fn) (setenv "PATH" (concat fn ":" (getenv "PATH"))))) (defun jao-load-path (subdir) @@ -102,6 +103,17 @@ (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")) + (jao-exec-path p)) + (add-to-list 'Info-directory-list "/opt/homebrew/share/info")) + ;;;; custom location of custom.el and co. (setq custom-file (jao-site-el "custom")) (load custom-file) -- cgit v1.2.3