summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-mac.el
blob: ae7138e5aabfa78f8f9b204af845d7f137fde2be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
;;; jao-custom-mac.el --- Setup for mac env        -*- lexical-binding: t; -*-

(setq mac-command-modifier 'meta)

(global-set-key (kbd "£") (lambda () (interactive) (insert "#")))

(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"
             "~/.ghcup/bin"
             "~/.local/bin"
             "~/.cabal/bin"
             "~/.cargo/bin"
             "/Library/TeX/texbin"))
  (jao-exec-path p))

(with-eval-after-load "info"
  (add-to-list 'Info-directory-list "/opt/homebrew/share/info"))

(setenv "CC" "clang")
(setenv "CXX" "clang++")

(provide 'jao-custom-mac)
;;; jao-custom-mac.el ends here