summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el14
1 files changed, 13 insertions, 1 deletions
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)