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 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'common/.config/emacs/init.el.org') 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. -- cgit v1.2.3