From 728863436db2c3bceff95e5416c6bf39dce67542 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Wed, 15 Oct 2025 02:37:41 +0300 Subject: emacs: Fix compilation issues when launching as app --- emacs/.config/emacs/early-init.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs') diff --git a/emacs/.config/emacs/early-init.el b/emacs/.config/emacs/early-init.el index 0a05906..8792449 100644 --- a/emacs/.config/emacs/early-init.el +++ b/emacs/.config/emacs/early-init.el @@ -5,6 +5,12 @@ ;; It will be replaced by GCMH :) (setq gc-cons-threshold most-positive-fixnum) +;; Fix for native compilation errors on macOS GUI launch +(let ((brew-prefix "/opt/homebrew/bin")) + (when (file-directory-p brew-prefix) + (setenv "PATH" (concat brew-prefix ":" (getenv "PATH"))) + (add-to-list 'exec-path brew-prefix))) + ;; Disable package.el in favour of elpaca (setq package-enable-at-startup nil) -- cgit v1.2.3