(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives '(("ELPA" . "
http://tromey.com/elpa/")
("gnu" . "
http://elpa.gnu.org/packages/")
("melpa" . "
https://melpa.org/packages/")
("org" . "
https://orgmode.org/elpa/")))
(package-initialize)
;;; Bootstrapping use-package, i.e., if use-package isn't installed
;;; then install it
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
;;;This will ensure all packages are installed if not already
(require 'use-package-ensure)
(setq use-package-always-ensure t)
;;;This will make sure packages are updated
(use-package auto-package-update
:config
(setq auto-package-update-delete-old-versions t)
(setq auto-package-update-interval 1)
(setq auto-package-update-hide-results t)
(auto-package-update-maybe))