8

I installed "PlantUML Mode for Emacs" using Melpa successfully, and I am able to switch to Plantuml-mode. However, when I try to evaluate code with C-c C-c, inside of org-mode, I get the error:

org-babel-execute-src-block: No org-babel-execute function for plantuml!

How do I add this?

7
  • I think that the backend comes with plantuml-mode, do you have it installed?
    – wvxvw
    Commented Nov 7, 2016 at 9:45
  • @wvxvw I believe so, at least I know I can swtich to plantuml-mode
    – David J.
    Commented Nov 7, 2016 at 13:47
  • 2
    If you look in your /usr/share/emacs/24.5/lisp/org or equivalent place where you stored your Org mode sources, do you have ob-plantuml.elc, ob-plantuml.el.gz or similar file in there? If so, will adding (require 'ob-plantuml) to your init file (and evaluation) solve the problem?
    – wvxvw
    Commented Nov 7, 2016 at 14:08
  • @wvxvw That fixed it, thanks a lot! (I added the require to my init file)
    – David J.
    Commented Nov 8, 2016 at 14:17
  • 1
    Hm... technically, just adding plantuml to org-babel-load-languages should've worked. Wait, did you actually add plantuml to this variable? Something like: (org-babel-do-load-languages 'org-babel-load-languages '((plantuml . t)))
    – wvxvw
    Commented Nov 8, 2016 at 17:42

1 Answer 1

10

Wrap the list of languages you want to use with org-babel inside the with-eval-after-load block

(with-eval-after-load 'org
(org-babel-do-load-languages 'org-babel-load-languages '((ruby . t)
(plantuml . t)
)))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.