zwild / ob-ammonite

org-babel for scala evaluation in Ammonite
GNU General Public License v3.0
14 stars 2 forks source link

Installation with spacemacs #7

Open justjoheinz opened 3 years ago

justjoheinz commented 3 years ago

Is there an example out there somewhere which explains how to install ob-ammonite with spacemacs. I have the spacemacs scala layer configured to use metals instead of the deprecated ensime backend, but if I add ob-ammonite to the additional sections packages, org mode complains that there is no ob-scala file to be found (whcih AFAIK is not available anymore due to dependencies on ensime).

Thrimbda commented 3 years ago

org mode complains that there is no ob-scala file to be found

hi there, if you enable debug on err (which is M-x + toggle-debug-on-error) and reload the .spacemacs file, you'll see org babel is just adding "ob-" prefix to the language you added, and thus in your case I guess you've added (scala . t), try to replace "scala" with "ammonite", and emacs will find ob-ammonite you just installed