I've installed j-mode and it works.
But in an org-babel code block I have a strange issue.
Spelling like begin_src J
(capital J) allows me to evaluate the block, but has no syntax highlighting:
#+begin_src J
(+/%#) 0.2 + i.24 NB. avg
#+end_src
#+RESULTS:
: 11.7
Also, I can't use C-c '
to edit the code in a popup; instead I get an error message: No such language mode: J-mode
.
Here's the strangest thing: when I change the spelling to begin_src j
(lowercase j), then I get syntax highlighting and can use C-c '
to edit the code in a popup as expected.
However, now org-babel won't evaluate the source block, and when I try it complains with ob-j.elc failed to provide feature ‘ob-j’
.
Is there anything I can do to get both sets of features at the same time?
ob-j.elc failed to provide feature ‘ob-j’
sounds strange - maybe ob-j.elc is corrupt or needs to be recompiled?ob-J
(uppercase) but org's own syntax highlighting usesj-mode
(lowercase).ob-J.elc
but noob-j.elc
. Will try a recompile.(provide 'ob-J)
. Should I edit it so it says(provide 'ob-j)
instead?ob-C.el
andc-mode
coexist. If there is a trick there, it might be applied toob-J.el
. You might want to bring it up on the Org mode mailing list.