about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-misc.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-08-30 16:14:05 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-08-30 16:14:05 +0100
commit05c45adfdeedb374b4d62f0205f7586ef7deef78 (patch)
tree5cd55414e49a5d4d55cb63b30689dcf33ad1daae /.emacs.d/lisp/init-misc.el
parentcabfe526c382a5a1852ef36a193234f202c5ef4b (diff)
downloaddotfiles-05c45adfdeedb374b4d62f0205f7586ef7deef78.tar.gz
Use use-package's :if
Diffstat (limited to '.emacs.d/lisp/init-misc.el')
-rw-r--r--.emacs.d/lisp/init-misc.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el
index 83b1634..e82cf89 100644
--- a/.emacs.d/lisp/init-misc.el
+++ b/.emacs.d/lisp/init-misc.el
@@ -3,11 +3,11 @@
 ;;; Code:
 
 (use-package exec-path-from-shell
+  :if (memq window-system '(mac ns))
   :custom
   (exec-path-from-shell-arguments '("-l"))
   :config
-  (when (memq window-system '(mac ns))
-    (exec-path-from-shell-initialize)))
+  (exec-path-from-shell-initialize))
 
 (use-package envrc
  :diminish