Browse Source

update config for use-package

master
Marc Pohling 6 years ago
parent
commit
88d5450392
1 changed files with 10 additions and 12 deletions
  1. 22
      init.el

22
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"))

Loading…
Cancel
Save