From 88d5450392d55a9b4a01ffd26bf80110d2a797c6 Mon Sep 17 00:00:00 2001 From: Marc Pohling Date: Sat, 1 Sep 2018 09:14:27 +0200 Subject: [PATCH] update config for use-package --- init.el | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/init.el b/init.el index f74dddc..4bfcec3 100644 --- a/init.el +++ b/init.el @@ -24,32 +24,30 @@ (add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/") t) (add-to-list 'package-archives - '("org" . "http://orgmode.org/elpa/") t) -(when (boundp 'package-pinned-packages) - (setq package-pinned-packages - '((org-plus-contrib . "org")) - ) -) + '("org" . "https://orgmode.org/elpa/") t) (package-initialize) ;; Bootstrap use-package ;; Install use-package if it's not already installed ;; use-package is used to configure the rest of the packages -;; versuib 2018.03.11.2137 had troubles finding packages, -;; so stick with stable 2.3 -(push '(use-package . "melpa-stable") package-pinned-packages) (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package) ) +(setq use-package-verbose nil) + ;; From use-package README (eval-when-compile (require 'use-package)) -(require 'diminish) -;;use-package needs this -(require 'bind-key) +;; see https://github.com/jwiegley/use-package/issues/522 +(use-package diminish + :ensure t) + +(use-package org + :ensure org-plus-contrib + :pin org) ;; Load the config (org-babel-load-file (concat user-emacs-directory "config.org"))