Skip to content

Commit

Permalink
pretty lambdas in clojure
Browse files Browse the repository at this point in the history
  • Loading branch information
eschulte committed Sep 6, 2010
1 parent 89a1138 commit fe0e8bb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions starter-kit-lisp.org
Expand Up @@ -153,6 +153,17 @@ Kills existing SLIME session, if any."
(slime)))
#+end_src

pretty \lambda's in clojure
#+begin_src emacs-lisp
(defun pretty-lambdas-clojure ()
(font-lock-add-keywords
nil `(("(?\\((fn\\>\\)"
(0 (progn (compose-region (+ (match-beginning 1) 1) (match-end 1)
,(make-char 'greek-iso8859-7 107))
nil))))))
(add-hook 'clojure-mode-hook 'pretty-lambdas-clojure)
#+end_src

** Scheme

#+begin_src emacs-lisp
Expand Down

0 comments on commit fe0e8bb

Please sign in to comment.