With leiningen http://leiningen.org/
lein new clojure-into
You can then open your project in LightTable http://www.lighttable.com/ and start hacking !
;;; Create and display an `ibuffer' showing only `org-mode' files. | |
;;; | |
;;; I have bound this to "\C-cb" using: | |
;;; (global-set-key "\C-cb" #'org-ibuffer) | |
;;; | |
;;; Now "\C-x\C-b" creates a generic `ibuffer' and "\C-cb" | |
;;; creates an `org-mode' `ibuffer'. | |
(require 'ibuffer) |
With leiningen http://leiningen.org/
lein new clojure-into
You can then open your project in LightTable http://www.lighttable.com/ and start hacking !
The philosophy behind Documentation-Driven Development is a simple: from the perspective of a user, if a feature is not documented, then it doesn't exist, and if a feature is documented incorrectly, then it's broken.
(ns localstorage) | |
(defn set-item! | |
"Set `key' in browser's localStorage to `val`." | |
[key val] | |
(.setItem (.-localStorage js/window) key val)) | |
(defn get-item | |
"Returns value of `key' from browser's localStorage." | |
[key] |
A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.
How to use:
;;; -*- lexical-binding: t; -*- | |
;; $ emacs -Q --batch -f batch-byte-compile example.el | |
;; $ emacs -Q --batch -l example.elc -f disas | |
;; $ emacs -Q --batch -l example.elc -f bench | |
(defun add (a b) | |
(+ (car a) (car b))) | |
(defalias 'car-alias #'car) |