From 352e373f439027f29b491cf0842dbb42c4d00db8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 19 Apr 2022 08:39:45 -0700 Subject: start to install packages without use-package Define a list of packages in `init.el', and then use plain `require' in the various custom modules. The first two packages installed that way are: - notmuch - exec-path-from-shell --- emacs/custom/my-settings.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'emacs/custom/my-settings.el') diff --git a/emacs/custom/my-settings.el b/emacs/custom/my-settings.el index 04d0182..4f6621b 100644 --- a/emacs/custom/my-settings.el +++ b/emacs/custom/my-settings.el @@ -64,12 +64,9 @@ :init (savehist-mode)) -(use-package exec-path-from-shell - :ensure t - :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)))) +(when (memq window-system '(mas ns)) + (require 'exec-path-from-shell) + (add-hook 'emacs-startup-hook (lambda () (exec-path-from-shell-initialize)))) (provide 'my-settings) ;;; my-settings.el ends here -- cgit v1.2.3