Post AdXUhyaZPyypUmfe6q by ramin_hal9001@emacs.ch
 (DIR) More posts by ramin_hal9001@emacs.ch
 (DIR) Post #AdXSbp2BpS1KDVWklM by mms@emacs.ch
       2024-01-05T14:40:43Z
       
       0 likes, 0 repeats
       
       #emacs: how can I require a file *after* org is loades? I getSymbol's function definition is void: org-export-define-derived-backend
       
 (DIR) Post #AdXTsNd74TDy6IG0RM by corwin@noc.social
       2024-01-05T14:54:49Z
       
       0 likes, 0 repeats
       
       @mms did you try something like this, already?(with-eval-after-load 'org (do (stuff)))
       
 (DIR) Post #AdXUANyIXVHINAkgOu by mms@emacs.ch
       2024-01-05T14:58:12Z
       
       0 likes, 0 repeats
       
       @corwin Yes(with-eval-after-load "org" (load-file "~/.emacs.d/mms-emacs-modules/mms-emacs-jira.el"))
       
 (DIR) Post #AdXUJPavsFKW0s7vjE by corwin@noc.social
       2024-01-05T14:59:46Z
       
       0 likes, 0 repeats
       
       @mms And that's not working, I assume?Is it possible that Emacs doesn't encounter your e-a-l form until after it has already started loading org?Maybe try moving your e-a-l into early-init.el ?
       
 (DIR) Post #AdXUhyaZPyypUmfe6q by ramin_hal9001@emacs.ch
       2024-01-05T15:04:15Z
       
       0 likes, 0 repeats
       
       @mms  if you are using something like use-package, it has a :after keyword and a :defer keyword which you can use. So for example:(use-package package-name  :defer t  :after (org))
       
 (DIR) Post #AdXUiPLFx1m0T6iIUK by flamingos_cant@mastodon.social
       2024-01-05T15:04:14Z
       
       0 likes, 1 repeats
       
       @mms Sounds like to need to add (require 'ox), it's where that function is defined.
       
 (DIR) Post #AdXUna8FGF69Ni5wH2 by mms@emacs.ch
       2024-01-05T15:05:17Z
       
       0 likes, 0 repeats
       
       @flamingos_cant this! thanks!
       
 (DIR) Post #AdXXCGDGekI2kfL6si by mousebot@todon.nl
       2024-01-05T15:32:06Z
       
       0 likes, 0 repeats
       
       @mms you can use the :after keyword in use-package, or use with-eval-after-load to load something after another library is loaded. you can also use a post hook but i think it's less good.the issue though is that doing things with org is somtimes more tricky because of how it is loaded unlike other packages.hm although, looking at my org packages loading, i do often load things using :after.
       
 (DIR) Post #AdXgytQ95LOBq7cyAa by simoninireland@mastodon.scot
       2024-01-05T17:21:47Z
       
       0 likes, 0 repeats
       
       @mms (with-eval-after-load (require 'whatever)) should work
       
 (DIR) Post #AdXt1b1P9Ds75w6v6O by rahguzar@emacs.ch
       2024-01-05T19:36:42Z
       
       0 likes, 0 repeats
       
       @mms (with-eval-after-load 'org  (require 'file))should work.