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)

  • Look up "dotted pairs" for more information. – Dan Jun 22 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 at 11:41
  • could you please transmit the comment to answer. @phils – Algebra Jun 22 at 12:46
2

(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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.