Don't install org-plus-contrib in Emacs 26+

Emacs 26+ has Org 9.1.4 built in.
This commit is contained in:
Henrik Lissner 2017-12-30 02:51:58 -05:00
parent a370b5b125
commit f8f4885405
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -1,11 +1,12 @@
;; -*- no-byte-compile: t; -*-
;;; lang/org/packages.el
;; NOTE This is an insecure source, but unavoidable if we want org 9.0+ (which
;; this module requires). orgmode.org offers no secure access to this repo. If
;; this bothers you, comment out this `package!' block and download
;; org-plus-contrib from orgmode.org.
(package! org-plus-contrib :recipe (:fetcher github :repo "emacsmirror/org" :files (:defaults "contrib/lisp/*.el")))
(when (version< emacs-version "26.1")
;; We want org 9.1.x, but the org packaged with Emacs 25.x and under is 8.x.
;; The only secure (and reasonably trustworthy) source for this is via
;; emacsmirror. Emacs 26+ comes with Org 9.1.4.
(package! org-plus-contrib
:recipe (:fetcher github :repo "emacsmirror/org" :files (:defaults "contrib/lisp/*.el"))))
(package! org-bullets :recipe (:fetcher github :repo "hlissner/org-bullets"))
(package! toc-org)