Skip to content

Instantly share code, notes, and snippets.

View klang's full-sized avatar
Working from the office

Karsten Lang klang

Working from the office
View GitHub Profile
klang /
Created February 14, 2017 07:14 — forked from john2x/
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.


klang / clojure-font-lock-setup.el
Created June 1, 2010 18:47 — forked from michalmarczyk/clojure-font-lock-setup.el
adding paredit-mode to the repl
;;; all code in this function lifted from the clojure-mode function
;;; from clojure-mode.el
(defun clojure-font-lock-setup ()
(set (make-local-variable 'lisp-indent-function)
(set (make-local-variable 'lisp-doc-string-elt-property)
(set (make-local-variable 'font-lock-multiline) t)