Try to fix the warning due to setting `org-babel-load-languages'

This commit is contained in:
Gerard Vermeulen 2023-01-13 16:57:56 +01:00
parent 7a77e2d736
commit 189cb48440
1 changed files with 21 additions and 23 deletions

View File

@ -2044,29 +2044,26 @@ list detailing and motivating each listing:
#+name: lst:set-org-options #+name: lst:set-org-options
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'org (with-eval-after-load 'org
(custom-set-variables (setopt
`(org-babel-load-languages org-babel-load-languages
(delq nil '((C . t) `((C . t)
(calc . t) (calc . t)
,(when (fboundp 'grapviz-dot-mode) '(dot . t)) (dot . ,(fboundp 'grapviz-dot-mode))
(emacs-lisp . t) (emacs-lisp . t)
(eshell . t)
,(when (fboundp 'fennel-mode) '(fennel . t))
(fortran . t) (fortran . t)
,(when (fboundp 'gnuplot-mode) '(gnuplot . t)) (gnuplot . ,(fboundp 'gnuplot-mode))
(js . t) (js . t)
(latex . t) (latex . t)
(lisp . t) (lisp . t)
,(when (fboundp 'lua-mode) '(lua . t)) (lua . ,(fboundp 'lua-mode))
,(when (fboundp 'maxima-mode) '(maxima . t)) (maxima . ,(fboundp 'maxima-mode))
(org . t) (org . t)
(perl . t) (perl . t)
;; The next two functions are not bound during bootstrap. ;; The Python setup uses the two functions below.
,(when (and (fboundp 'choose-common-python-interpreter) ;; Those functions are not yet bound during bootstrap.
(fboundp 'choose-common-python-linter)) (python . ,(and (fboundp 'choose-common-python-interpreter)
'(python . t)) (fboundp 'choose-common-python-linter)))
(shell . t))))) (shell . t))
(setopt
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)
@ -4270,7 +4267,8 @@ install and use [[https://gitlab.com/andreyorst/ob-fennel][ob-fennel]] with the
(ensure-package-installation 'fennel-mode 'quelpa)) (ensure-package-installation 'fennel-mode 'quelpa))
(unless (package-installed-p 'ob-fennel) (unless (package-installed-p 'ob-fennel)
(quelpa '(ob-fennel :repo "andreyorst/ob-fennel" :fetcher gitlab))) (quelpa '(ob-fennel :repo "andreyorst/ob-fennel" :fetcher gitlab)))
(ensure-package-selection 'ob-fennel)) (when (ensure-package-selection 'ob-fennel)
(org-babel-do-load-languages 'fennel (fboundp 'fennel-mode))))
#+end_src #+end_src
#+caption[Fennel example]: #+caption[Fennel example]: