lang/org: add ob-ammonite

This commit is contained in:
Henrik Lissner 2019-12-19 13:19:53 -05:00
parent fd3f5b5b77
commit bc44ae0beb
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 9 additions and 1 deletions

View file

@ -248,7 +248,13 @@ background (and foreground) match the current theme."
:override #'org-babel-do-load-languages
(message
(concat "`org-babel-do-load-languages' is redundant with Doom's lazy loading mechanism for babel "
"packages. There is no need to use it, so it has been disabled"))))
"packages. There is no need to use it, so it has been disabled")))
(when (featurep! :lang scala)
(add-hook! '+org-babel-load-functions
(defun +org-babel-load-ammonite-h (lang)
(and (eq lang 'scala)
(require 'ob-ammonite nil t))))))
(defun +org-init-capture-defaults-h ()