Why does straight sometimes rebuild org?

Table of Contents

The problem: rebulding packages

This was discussed in an issue on straight1

With the notorious orgmode updates and breakages, combined with the amount that I depend upon orgmode, I am trying to just stick with the built in version and not ever build it. As such, my Straight orgmode invocation looks like this:

(use-package org
:straight (:type built-in)

Nonetheless, some packages seem to cause org to “build” and use a straight version. One of these packages is elfeed-org, which, other than its name, doesn’t make any mention of org in my use-package definition: no :after or any other mention. Is there some way I can prevent other packages from causing a Straight org build? Why could this be happening?

(use-package elfeed-org
  :after elfeed  
  :config
  (elfeed-org)
  (setq rmh-elfeed-org-files (list "~/org/elfeed.org")))

Answer

Straight loads things on order of their appearance in you init file. So I needed to hoist the use-package org statement to the top of the file and then the big package stopped getting rebuilt. I keep the hoist-section open for anything that might require a package that I normally (alphabetically) load later.

Footnotes

1 The Straight.el issue here: https://github.com/radian-software/straight.el/issues/1019

Tory Anderson avatar
Tory Anderson
Full-time Web App Engineer, Digital Humanist, Researcher, Computer Psychologist