I'm trying to use use-package
in my Preferences.el
file under Aquamacs 3.6. Every time I try to run Aquamacs with the following Preferences.el
, Aquamacs hangs, usually indefinitely.
(require 'package)
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents) ;; Does not hang if this line is commented out
)
Does anyone know what is wrong? Incidentally, if I comment out the (package-refresh-contents)
line, then Aquamacs starts correctly. Ultimately, I want to install use-package
and use it within the remainder of my Preferences.el
.
(package-refresh-contents)
that causes the hang. I've revised the code above.open -n /Applications/Aquamacs.app --args --debug-init
, which allowed me to see that Aquamacs was prompting me to decide whether to ignore expired certificates from melpa and gnu. After ignoring, Aquamacs now boots promptly.