Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 1.04 KB

README.org

File metadata and controls

28 lines (26 loc) · 1.04 KB

four-clj.el

Introduction

This is an Emacs minor mode aimed at Clojure beginners (much like myself). You type M-x 4clojure-problem <RET> <problem-number> <RET> and the mode takes care of the rest.

For a better experience, use clojure-mode and swank-clojure.

Installation

Download the file, put it somewhere in your load-path (~/.emacs.d, for instance) and require it:

(add-to-list 'load-path "~/.emacs.d/4clj-el/")
(require 'four-clj)

Configuration

4clj-comment-string

Holds the comment prefix for description.

4clj-buffer-name

4clojure buffer name. Defaults to 4clojure.

4clj-template-function

The function that renders the template. Anything that receives a string with newline-separated tests and returns a string template will do.

Todo

Escape HTML in problem description.

Put the problem number in the buffer name (it erases the 4clojure buffer contents).