# HG changeset patch # User Sevan Janiyan # Date 1647990407 0 # Tue Mar 22 23:06:47 2022 +0000 # Node ID ef6152f07eaff625d14b6e7612f55d562b27fda0 # Parent fc52e90e5a24c3d2486dd0c8af220e365badc968 emacs.d/init.el: auto-install packages if they're not installed already on startup. diff --git a/emacs.d/init.el b/emacs.d/init.el --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -16,6 +16,11 @@ ;; If there is more than one, they won't work right. ) +;; If cache of the contents of the ELPA repo is empty, refresh cache. +(unless package-archive-contents + (package-refresh-contents)) +(package-install-selected-packages) + (load-theme 'atom-one-dark t) (setq inhibit-startup-screen t)