Giter Club home page Giter Club logo

emacs-ob-racket's Introduction

An Emacs feature that defines support for Org-Mode Babel code blocks written in Racket.

Includes support for many of the usual Org SRC block header arguments (with the notable exception of session), as well as some extras for controlling the way that code blocks are evaluated. This sort of functionality is perhaps more important for Racket than for most other languages, since Racket is not just one language. Rather, Racket is an open-ended, user-extensible collection of languages (including, e.g., Racket, Scribble, Slideshow, Redex, and Magnolisp), which may not always be evaluated in the Racket VM in the usual way of just invoking the racket executable.

Pre-Requisites

To use ob-racket, first ensure that Org-Mode 8 is installed, and that a major mode (such as racket-mode) has been configured for editing racket code blocks in Org.

If your mode for editing Racket code is not called racket-mode, you’ll want to specify the mode to use with something like:

(add-to-list 'org-src-lang-modes (quote ("racket" . geiser)))

Installation

Firstly, you may want to byte compile the “ob-racket.el” file, for example by invoking the byte-compile-file function under Emacs.

Then make sure the ob-racket feature is on Emacs’ load-path so that it can be loaded on demand:

(add-to-list 'load-path "/my/path/to/emacs-ob-racket")

Furthermore, you should enable racket code for evaluation (e.g., upon invoking org-babel-execute-src-block, by default bound to C-c C-c under Org), by having the org-babel-load-languages variable include racket. Something like this should do the trick:

(org-babel-do-load-languages
 'org-babel-load-languages
 '((emacs-lisp . t)
   (racket . t)
   (scribble . t)))

Documentation

There is no separate documentation for ob-racket, so look at the source code, and the Emacs Lisp docstrings of the functions appearing there. You will probably also find the the relevant Org documentation useful.

emacs-ob-racket's People

Contributors

freeduck avatar hasu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.