Skip to content

Instantly share code, notes, and snippets.

@exu
Forked from PhilHudson/gist:1883609
Created March 1, 2012 11:38
Show Gist options
  • Select an option

  • Save exu/1949210 to your computer and use it in GitHub Desktop.

Select an option

Save exu/1949210 to your computer and use it in GitHub Desktop.
pretty-lambdas for elisp
(defun pretty-lambdas ()
"Show glyph for lower-case Greek lambda (λ) wherever 'lambda' appears."
(font-lock-add-keywords
nil
`(("(\\(lambda\\>\\)"
(0
(progn
(compose-region
(match-beginning 1)
(match-end 1)
,(make-char 'greek-iso8859-7 107))
'font-lock-keyword-face))))))
(add-hook 'elisp-mode-hook 'pretty-lambdas)
@exu
Copy link
Copy Markdown
Author

exu commented Mar 1, 2012

nice, can be used to other nice things

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