diff options
author | jao <jao@gnu.org> | 2025-09-15 06:04:17 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2025-09-15 06:04:17 +0100 |
commit | de448b26fef769747a6d13c931627efc6f20bb88 (patch) | |
tree | 57df461673946d00400bba7dd143b0488403f14b | |
parent | 762b840d9fe86f84b99bfd96a5b5673e2b2827c8 (diff) | |
download | elibs-de448b26fef769747a6d13c931627efc6f20bb88.tar.gz elibs-de448b26fef769747a6d13c931627efc6f20bb88.tar.bz2 |
mac: brew environment
-rw-r--r-- | init.el | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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) |