summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-03-25 06:46:33 -0700
committerFranck Cuny <franck@fcuny.net>2022-03-25 06:46:33 -0700
commit01f75be6b33263d499fb3881201c4a7aa74cfb67 (patch)
tree1968617bbe409b049b624a39903f0fce480b9951 /emacs/custom
parentpackages: extra functions related to package.el (diff)
downloademacs.d-01f75be6b33263d499fb3881201c4a7aa74cfb67.tar.gz
settings: simplify server / exec-path-from-shell
Diffstat (limited to '')
-rw-r--r--emacs/custom/my-settings.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/emacs/custom/my-settings.el b/emacs/custom/my-settings.el
index a733004..534e564 100644
--- a/emacs/custom/my-settings.el
+++ b/emacs/custom/my-settings.el
@@ -51,15 +51,15 @@
   :config
   (midnight-mode t))
 
-(use-package server
-  :hook (after-init . server-start))
+(unless (and (fboundp 'server-running-p)
+             (server-running-p))
+  (server-start))
 
 (use-package exec-path-from-shell
-  :ensure t
-  :config
-  (progn
-    (when (memq window-system '(mac ns))
-      (exec-path-from-shell-initialize))))
+  :if (memq window-system '(mac ns))
+  :hook (emacs-startup . (lambda ()
+                           (setq exec-path-from-shell-arguments '("-l")) ; removed the -i for faster startup
+                           (exec-path-from-shell-initialize))))
 
 (provide 'my-settings)
 ;;; my-settings.el ends here