aboutsummaryrefslogtreecommitdiff
path: root/common/.config
diff options
context:
space:
mode:
Diffstat (limited to 'common/.config')
-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.