Movatterモバイル変換


[0]ホーム

URL:


Next:, Previous:, Up:Working with Source Code   [Contents][Index]


16.9 Languages

Code blocks in dozens of languages are supported. See Worg websiteforlanguage specific documentation.

By default, only Emacs Lisp is enabled for evaluation. To enable ordisable other languages, customize theorg-babel-load-languagesvariable either through the Emacs customization interface, or byadding code to the init file as shown next.

In this example, evaluation is disabled for Emacs Lisp, and enabledfor R.

(org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . nil)   (R . t)))

Note that this is not the only way to enable a language. Org alsoenables languages when loaded withrequire statement. For example,the following enables execution of Clojure code blocks:

(require 'ob-clojure)

[8]ページ先頭

©2009-2025 Movatter.jp