I've got this in my
config.org , which is called by my init.el:
#+begin_src emacs-lisp
(defun borgauf/execute-startup-block ()
(interactive)
(progn (org-babel-goto-named-src-block "startup")
(org-babel-execute-src-block)))
#+end_src
then in my org-mode file I have this at the bottom:
* Comments
#+name: startup
#+BEGIN_SRC emacs-lisp :results silent
;(progn (slime) (org-babel-execute-buffer))
(slime)
(org-babel-execute-buffer)
#+END_SRC
# Local Variables:
# eval: (borgauf/execute-startup-block)
# End:
This is starting the slime repl just fine, but not doing the (org-babel-execute-buffer). I can then manually run C-c C-v b and it indeed runs all the code blocks. So, I'm guessing that after the (slime) is performed, it doesn't return focus to my calling org-mode buffer and the (org-babel-execute-buffer) is running to no avail in the slime repl buffer?