Try to fix autoinstall of packages

This commit is contained in:
inaki
2017-06-06 09:30:56 +02:00
parent cc4df81ab2
commit c422ca63ad
3 changed files with 8 additions and 21 deletions

13
init.el
View File

@@ -5,6 +5,7 @@
(interactive)
(byte-recompile-directory user-emacs-directory 0))
(load "~/.emacs.d/my-packages.el")
(byte-compile-init-dir)
(load "~/.emacs.d/my-loadpackages.elc")
(add-hook 'after-init-hook
@@ -53,15 +54,3 @@
'(term-color-red ((t (:foreground "#ff6633"))))
'(term-color-white ((t (:foreground "#ede4b1"))))
'(term-color-yellow ((t (:foreground "#803319")))))
;; ;; custom-set-faces was added by Custom.
;; ;; If you edit it by hand, you could mess it up, so be careful.
;; ;; Your init file should contain only one such instance.
;; ;; If there is more than one, they won't work right.
;; '(term-color-black ((t (:foreground "#525252"))))
;; '(term-color-blue ((t (:foreground "#33ddff"))))
;; '(term-color-cyan ((t (:foreground "#196f80"))))
;; '(term-color-green ((t (:foreground "#bf4c26"))))
;; '(term-color-magenta ((t (:foreground "#26a6bf"))))
;; '(term-color-red ((t (:foreground "#ff6633"))))
;; '(term-color-white ((t (:foreground "#bfbfbf"))))
;; '(term-color-yellow ((t (:foreground "#803319")))))

View File

@@ -1,5 +1,3 @@
(load "~/.emacs.d/my-packages.el")
(require 'use-package)
(use-package ivy

View File

@@ -18,10 +18,10 @@
nil
t))
;; (message "%s" "Emacs Prelude is now refreshing its package database...")
;; (package-refresh-contents)
;; (message "%s" " done.")
;; (dolist (p prelude-packages)
;; (when (not (package-installed-p p))
;; (package-install p)))
(unless (prelude-packages-installed-p)
(message "%s" "Emacs Prelude is now refreshing its package database...")
(package-refresh-contents)
(message "%s" " done.")
(dolist (p prelude-packages)
(when (not (package-installed-p p))
(package-install p))))