Skip to content

ess-julia-mode, julia-mode and org-mode configuration #19

Description

@fkgruber

Hi
I'm running into a strange issue when using julia with orgmode. I loaded ob-julia
(load-file "~/elisp/ob-julia.el")
and included julia in the load-language

(org-babel-do-load-languages
 'org-babel-load-languages
 '((julia . t)))

I'm able to create a source block and execute it with C-c C-c

#+begin_src julia
x="foo2"
y=[1,2,3,4,5]
y
#+end_src

However, when I try to edit the code (C-c ') julia-mode is activated and none of the ESS specific commands work.

On the other hand if I use ess-julia instead of julia on the source block:

#+begin_src ess-julia
x="foo2"
y=[1,2,3,4,5]
y
#+end_src

and I type C-c ' then ess-julia-mode gets activated and the ess keybindinds work fine.

The problem is that with ess-julia-mode I'm unable to use C-c C-c to execute the block. I get:
org-babel-execute-src-block: No org-babel-execute function for ess-julia!

How can I set org-edit-src-code to set julia blocks to ess-julia-mode instead of julia-mode? Or alternatively use ess-julia as an alias to julia so that I can execute julia blocks in orgmode.

Could this be related to issue:
emacs-ess/ESS#645
?

What am I missing?
thanks
FKG

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions