Fix contrib libs not included with org-mode

This commit is contained in:
Henrik Lissner 2020-01-23 04:15:26 -05:00
parent 0bc7fc1ab8
commit c503e89043
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -17,13 +17,16 @@
(defun +org-fix-package-h (package &rest _) (defun +org-fix-package-h (package &rest _)
(when (equal package "org-mode") (when (equal package "org-mode")
(with-temp-file (expand-file-name "org-version.el" (straight--repos-dir "org-mode")) (with-temp-file (expand-file-name "org-version.el" (straight--repos-dir "org-mode"))
(insert "(fset 'org-release (lambda () \"9.3\"))\n" (insert "(fset 'org-release (lambda () \"9.4\"))\n"
"(fset 'org-git-version #'ignore)\n" "(fset 'org-git-version #'ignore)\n"
"(provide 'org-version)\n"))))) "(provide 'org-version)\n")))))
;; Install cutting-edge version of org-mode, and from a mirror, because ;; Install cutting-edge version of org-mode, and from a mirror, because
;; code.orgmode.org runs on a potato. ;; code.orgmode.org runs on a potato.
(package! org-mode :recipe (:host github :repo "emacs-straight/org-mode")) (package! org-mode
:recipe (:host github
:repo "emacs-straight/org-mode"
:files ("*.el" "lisp/*.el" "contrib/lisp/*.el")))
;; ...And prevent other packages from pulling org; org-plus-contrib satisfies ;; ...And prevent other packages from pulling org; org-plus-contrib satisfies
;; the dependency already: https://github.com/raxod502/straight.el/issues/352 ;; the dependency already: https://github.com/raxod502/straight.el/issues/352
(package! org :recipe (:local-repo nil)) (package! org :recipe (:local-repo nil))