init-elpa.el 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ;;; init-elpa.el --- .Emacs Configuration -*- lexical-binding: t -*-
  2. ;;; Commentary:
  3. ;;
  4. ;;; Code:
  5. ;;; Find and load the correct package.el
  6. ;; =====================================================
  7. ;; use-package → https://github.com/jwiegley/use-package
  8. ;; =====================================================
  9. (require 'package)
  10. ;; Repositories
  11. ;; ================
  12. (setq package-archives
  13. '(("GNU ELPA" . "https://elpa.gnu.org/packages/")
  14. ("MELPA Stable" . "https://stable.melpa.org/packages/")
  15. ("ORG" . "https://orgmode.org/elpa/")
  16. ("MELPA" . "https://melpa.org/packages/"))
  17. package-archive-priorities
  18. '(("MELPA Stable" . 10)
  19. ("GNU ELPA" . 5)
  20. ("ORG" . 3)
  21. ("MELPA" . 0)))
  22. ;; =================
  23. (package-initialize)
  24. (unless (package-installed-p 'use-package)
  25. (package-refresh-contents)
  26. (package-install 'use-package))
  27. (require 'use-package)
  28. (setq use-package-always-ensure t)
  29. ;; =====================================================
  30. ;; End use-package
  31. ;; =====================================================
  32. (provide 'init-elpa)
  33. ;; End:
  34. ;;; init-elpa.el ends here