aboutsummaryrefslogtreecommitdiff
path: root/common/.config/emacs/init.el.org
diff options
context:
space:
mode:
authorjjanzen <jjanzen@jjanzen.ca>2025-03-17 15:30:13 -0500
committerjjanzen <jjanzen@jjanzen.ca>2025-03-17 15:30:13 -0500
commitaa49605c34bab045d8c8c9144371cf4b44b7559b (patch)
treea75e32d5b907cfaff9ebd69f9ec18805d55dabd0 /common/.config/emacs/init.el.org
parent0a6b22205064c0075a7f66af8fbae856a3d3a864 (diff)
system changes
Diffstat (limited to 'common/.config/emacs/init.el.org')
-rw-r--r--common/.config/emacs/init.el.org9
1 files changed, 4 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.