Instantly share code, notes, and snippets.

Sean Johnson belucid

  • Chapel Hill, NC
View GitHub Profile
@belucid
belucid / gist:5900746
Created Jul 1, 2013
Define a macro with defmacro, and see what expands to with macroexpand.
View gist:5900746
=> (defmacro test-it [& body] `(do (def foo "bar") ~@body))
#'fcms.app/test-it
fcms.app=> (test-it (println foo))
bar
nil
> (macroexpand '(test-it (println foo)))
(do (def fcms.app/foo "bar") (println foo))
@belucid
belucid / gist:2419995
Created Apr 19, 2012 — forked from axelav/gist:1839777
Sublime Text 2 - Useful Shortcuts
View gist:2419995

Sublime Text 2 – Shortcuts (Mac OS X)

Keys

control
alt
command
shift
enter