From a09bddc734e9aba4c8e98e1720ad7801b743da4e Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 19 Oct 2016 08:05:12 +0200 Subject: [PATCH] Add bootstrapping code for the package system and use-package This is the first step to remove ELPA packages from my .emacs.d repository (as in Git). --- init.el | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/init.el b/init.el index db41f38..724379c 100644 --- a/init.el +++ b/init.el @@ -1,6 +1,17 @@ -;; Initialize the package system +;; Initialize the package system and use-package +(require 'package) +(add-to-list 'package-archives + '("gnu" . "http://elpa.gnu.org/packages/")) +(add-to-list 'package-archives + '("melpa" . "https://melpa.org/packages/")) +(add-to-list 'package-archives + '("marmalade" . "http://marmalade-repo.org/packages/")) (package-initialize) +(unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) + ;; Add path to my custom lisp functions (add-to-list 'load-path (concat user-emacs-directory @@ -39,11 +50,6 @@ '(nxml-attribute-indent 4) '(nxml-child-indent 2) '(nxml-outline-child-indent 4) - '(package-archives - (quote - (("gnu" . "http://elpa.gnu.org/packages/") - ("melpa" . "https://melpa.org/packages/") - ("marmalade" . "http://marmalade-repo.org/packages/")))) '(package-selected-packages (quote (ace-window