I have some sort of fundamental confusion about using src blocks in org mode.
I define a custom latex class in an emacs-lisp src block at the top of my org file. Export fails however, unless I manually execute the src block (because the required latex class doesn't exist until the src block is executed). I'm not prompted for permission to execute the block.
As a minimal example, I tried exporting this:
#+name: test #+begin_src emacs-lisp (message "Success") #+end_src
On export, I see
org-babel-exp processing... in my messages buffer, and I would expect to see
"Success" immediately after it, but I don't.
I'm clearly missing something obvious, but it's not clear to me from the info what I should be doing.