From aa49605c34bab045d8c8c9144371cf4b44b7559b Mon Sep 17 00:00:00 2001 From: jjanzen Date: Mon, 17 Mar 2025 15:30:13 -0500 Subject: system changes --- common/.config/emacs/init.el.org | 9 ++++----- macos.local/flake/system/homebrew.nix.org | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/.config/emacs/init.el.org b/common/.config/emacs/init.el.org index 34a6f7e..38a2019 100644 --- a/common/.config/emacs/init.el.org +++ b/common/.config/emacs/init.el.org @@ -104,11 +104,10 @@ Install and configure =visual-fill-column= to make some file types display with Make Emacs use the correct =PATH= variable as macOS fails to load the =PATH= variable from my login shell. #+begin_src emacs-lisp - (let ((path-from-shell (replace-regexp-in-string - "[ \t\n]*$" "" (shell-command-to-string - "$SHELL --login -c 'echo $PATH'")))) - (setenv "PATH" path-from-shell) - (setq exec-path (split-string path-from-shell path-separator))) + (use-package exec-path-from-shell + :init + (when (memq window-system '(mac ns x)) + (exec-path-from-shell-initialize))) #+end_src I hate macOS scroll inertia. Scrolling in one window, switching to Emacs, and hitting control occasionally changes the text size and can even cause Emacs (and my window manager for some reason) to hang forcing me to force quit Emacs. diff --git a/macos.local/flake/system/homebrew.nix.org b/macos.local/flake/system/homebrew.nix.org index bc5121d..27748b8 100644 --- a/macos.local/flake/system/homebrew.nix.org +++ b/macos.local/flake/system/homebrew.nix.org @@ -53,6 +53,7 @@ Set up Homebrew. I disable the quarantine automatically and ensure that the stat "poppler" # required by emacs-plus@30 + "gcc" "imagemagick" "jansson" "jpeg" -- cgit v1.2.3