From 99e39400deac96b6e8100e961a1cd327865d72c2 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 10 Dec 2018 08:25:05 +0100 Subject: [PATCH] Move package.el initialisation to configuration.org --- configuration.org | 17 +++++++++++++++++ init.el | 12 ------------ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/configuration.org b/configuration.org index 0578444..f04abc7 100644 --- a/configuration.org +++ b/configuration.org @@ -1,5 +1,22 @@ * Emacs configuration +** Set up the package archives + +#+BEGIN_SRC emacs-lisp +(require 'package) +(add-to-list 'package-archives + '("gnu" . "http://elpa.gnu.org/packages/")) +(add-to-list 'package-archives + '("melpa-stable" . "https://stable.melpa.org/packages/") t) +(add-to-list 'package-archives + '("melpa" . "https://melpa.org/packages/") t) +(add-to-list 'package-archives + '("marmalade" . "http://marmalade-repo.org/packages/") t) +(add-to-list 'package-archives + '("org" . "http://orgmode.org/elpa/") t) +(package-initialize) +#+END_SRC + ** Configure ~use-package~ and preload ~bind-key~ #+BEGIN_SRC emacs-lisp diff --git a/init.el b/init.el index 4ccf3df..0a0bcbb 100644 --- a/init.el +++ b/init.el @@ -9,18 +9,6 @@ ;; Initialize the package system and use-package (setq load-prefer-newer t) -(require 'package) -(add-to-list 'package-archives - '("gnu" . "http://elpa.gnu.org/packages/")) -(add-to-list 'package-archives - '("melpa-stable" . "https://stable.melpa.org/packages/") t) -(add-to-list 'package-archives - '("melpa" . "https://melpa.org/packages/") t) -(add-to-list 'package-archives - '("marmalade" . "http://marmalade-repo.org/packages/") t) -(add-to-list 'package-archives - '("org" . "http://orgmode.org/elpa/") t) -(package-initialize) ;; I started moving my configuration to this Org file. It’s easier to document this way. (org-babel-load-file (expand-file-name "configuration.org" user-emacs-directory))