0

Upon configuring babel, encounter such syntax

(require 'ob-ipython)
(org-babel-do-load-languages
 'org-babel-load-languages
 '((ipython . t)
   (python . t)
   (shell . t)
   ;; other languages..
   ))

What's the difference between (setq shell t) and (shell . t)

Drew
  • 77,472
  • 10
  • 114
  • 243
Wizard
  • 1,251
  • 6
  • 17
  • Look up "dotted pairs" for more information. – Dan Jun 22 '19 at 11:28
  • 4
    In this instance (setq shell t) is code (setting a variable) and (shell . t) is data, so other than the text containing many of the same characters, there's barely anything similar about them. – phils Jun 22 '19 at 11:41
  • could you please transmit the comment to answer. @phils – Wizard Jun 22 '19 at 12:46

1 Answers1

3

(setq shell t) would be code, setting the variable shell to the value t.

In the example in the question (shell . t) is part of a larger list of data being passed to the function org-babel-do-load-languages.

phils
  • 50,977
  • 3
  • 79
  • 122