lang/org: add ob-ammonite
This commit is contained in:
parent
fd3f5b5b77
commit
bc44ae0beb
2 changed files with 9 additions and 1 deletions
|
@ -248,7 +248,13 @@ background (and foreground) match the current theme."
|
||||||
:override #'org-babel-do-load-languages
|
:override #'org-babel-do-load-languages
|
||||||
(message
|
(message
|
||||||
(concat "`org-babel-do-load-languages' is redundant with Doom's lazy loading mechanism for babel "
|
(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 ()
|
(defun +org-init-capture-defaults-h ()
|
||||||
|
|
|
@ -72,6 +72,8 @@
|
||||||
(package! ob-restclient))
|
(package! ob-restclient))
|
||||||
(when (featurep! :lang rust)
|
(when (featurep! :lang rust)
|
||||||
(package! ob-rust))
|
(package! ob-rust))
|
||||||
|
(when (featurep! :lang scala)
|
||||||
|
(package! ob-ammonite))
|
||||||
|
|
||||||
;;; Export
|
;;; Export
|
||||||
(when (featurep! +pandoc)
|
(when (featurep! +pandoc)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue