brittAnderson / Intro2Computing4Psychology

A guided introduction to computing tools useful for research in psychology - targeted to complete beginners
47 stars 159 forks source link

Evaluating Code Blocks #41

Closed katevk closed 3 years ago

katevk commented 4 years ago

Hello,

I am unable to execute code blocks when I am in org mode and I am not sure why. When I input C-c C-c the buffer says 'C-c C-c can do nothing useful here'. I have been working around it till now but it slows me down. What am I doing wrong here?

I have attached an image to illustrate the issue.

cccc

Any help would be greatly appreciated! Thanks.

brittAnderson commented 3 years ago

I think this is supposed to work out of the box. I was wondering if you have

(org-babel-do-load-languages
 'org-babel-load-languages
 '((emacs-lisp . t) 
   (R . t)
   (python . t)
   (latex . t)
   (shell . t)
   ))

in your ~/.emacs.d/init.el file?

katevk commented 3 years ago

Thank you