Skip to content

Instantly share code, notes, and snippets.

@magnars
Created June 27, 2013 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magnars/5880194 to your computer and use it in GitHub Desktop.
Save magnars/5880194 to your computer and use it in GitHub Desktop.
;; shorthand for interactive lambdas
(defmacro λ (&rest body)
`(lambda ()
(interactive)
,@body))
(global-set-key (kbd "s-l") (λ (insert "\u03bb")))
@rejeep
Copy link

rejeep commented Jun 27, 2013

Nice, what about arguments? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment