I tried to execute an org-mode code block in octave, using the example in this SO question:
#+name: factor #+begin_src octave :session *octave* :exports code :results silent factor=4; #+end_src
But I got an error:
org-babel-execute-src-block: No org-babel-execute function for octave!
I have enabled org-babel for matlab and ocatve in emacs init file as far as I can. Emacs seems to recognize
.m files when loaded (The buffer is recognized as a
Am I missing something in configuring org-mode for octave?
By the way, this is with the default Emacs 26 from Ubuntu 20.04 LTS. And my org-babel configuration is:
(org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) ... (octave . t) (matlab . t) ))
and I also have this for octave mode in my init file:
;; (autoload 'octave-mode "octave-mod" nil t) ;;outdated (setq auto-mode-alist (cons '("\\.m$" . octave-mode) auto-mode-alist)) (add-hook 'octave-mode-hook (lambda () (abbrev-mode 1) (auto-fill-mode 1) (if (eq window-system 'x) (font-lock-mode 1))))