From baf4341edc2e78d3dfe51bb5fae30615efc6bdcc Mon Sep 17 00:00:00 2001 From: Tobias Ostner Date: Tue, 4 Apr 2023 08:23:41 +0200 Subject: [PATCH] Refactor exex-path-from-shell installation --- .emacs.d/init.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index d18938e..a9ad3d6 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -34,11 +34,6 @@ (require 'use-package) (setq use-package-always-ensure t) -(use-package exec-path-from-shell) - -(when (memq window-system '(mac ns x)) - (exec-path-from-shell-initialize)) - ;; ----------------------------------------------------------------- (use-package ace-window @@ -196,6 +191,11 @@ (when (fboundp 'mac-auto-operator-composition-mode) (mac-auto-operator-composition-mode))) +(when (memq window-system '(mac ns)) + (use-package exec-path-from-shell + :config + (exec-path-from-shell-initialize))) + (use-package flycheck :init (global-flycheck-mode))