Overhaul the `org-babel-load-languages' customization

This commit is contained in:
Gerard Vermeulen 2022-10-02 07:22:44 +02:00
parent bba8b405d2
commit 03a07a16fd

View File

@ -1950,21 +1950,24 @@ backward compatibility. See table [[tab:org-latex-class-tag-placeholder]] and ty
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'org (with-eval-after-load 'org
(custom-set-variables (custom-set-variables
'(org-babel-load-languages '((C . t) `(org-babel-load-languages
(calc . t) (delq nil '((C . t)
(dot . t) (calc . t)
(emacs-lisp . t) ,(when (fboundp 'grapviz-dot-mode) '(dot . t))
(eshell . t) (emacs-lisp . t)
(fortran . t) (eshell . t)
(gnuplot . t) ,(when (fboundp 'fennel-mode) '(fennel . t))
(js . t) (fortran . t)
(latex . t) ,(when (fboundp 'gnuplot-mode) '(gnuplot . t))
(lisp . t) (js . t)
(maxima . t) (latex . t)
(org . t) (lisp . t)
(perl . t) ,(when (fboundp 'lua-mode) '(lua . t))
(python . t) ,(when (fboundp 'maxima-mode) '(maxima . t))
(shell . t))) (org . t)
(perl . t)
(python . t)
(shell . t))))
'(org-export-backends '(ascii beamer html icalendar latex odt texinfo)) '(org-export-backends '(ascii beamer html icalendar latex odt texinfo))
'(org-file-apps '((auto-mode . emacs) '(org-file-apps '((auto-mode . emacs)
(directory . emacs) (directory . emacs)