Skip to content

Emacs Org-babel module for the Scopes language

Notifications You must be signed in to change notification settings

salotz/ob-scopes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Scopes Org-Babel

Put ob-scopes.el on your load path or load it in your config.

Then you can either add it to the

(org-babel-do-load-languages
 'org-babel-load-languages
 '(
     (python . t)
     (shell . t)
     (emacs-lisp . t)
     ; etc...
     (scopes . t)
   ))

Or you can just add it to the list:

(add-to-list 'org-babel-load-languages '(scopes . t))

Doesn’t support sessions. You can execute and also export the results.

To stop it from prompting you before each execution put this into your config:

(defun my-org-confirm-babel-evaluate (lang body)
  (not
   (string= lang "scopes")
   ))
(setq org-confirm-babel-evaluate #'my-org-confirm-babel-evaluate)

Of course be wary of executing untrusted code on your computer.

Known Issues

If you have a 0 at the end of a block without a newline you will get a compilation error e.g.:

#+begin_src scopes
  print 0
#+end_src

Just add a newline like:

#+begin_src scopes
  print 0
  
#+end_src

About

Emacs Org-babel module for the Scopes language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published