Skip to content

Instantly share code, notes, and snippets.

@maximvl
Last active December 18, 2015 15:28
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 maximvl/5804251 to your computer and use it in GitHub Desktop.
Save maximvl/5804251 to your computer and use it in GitHub Desktop.
(defun esk-pretty-fun ()
(font-lock-add-keywords
nil `(("\\(\\<fun\\>\\)("
(0 (progn (compose-region (match-beginning 1)
(match-end 1)
"\u0192" ;; ,(make-char 'greek-iso8859-7 107) for lambda
'decompose-region)))))))
(add-hook 'erlang-mode-hook 'esk-pretty-fun)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment