February 17, 2009

Emacs + Haskell + Pretty lambda

Do you know, that if you set the haskell-font-lock-symbols variable to t, in the haskell-mode hook, then your source code will look as on following picture:
haskell-pretty-font-lock
P.S. some symbols aren't included into standard package, but patch is already sent to author of haskell-mode...

9 comments:

Kelsin said...

By far the coolest thing I've seen today!

ahamay said...

Could you please publish your patch here? I have to get this, and I dunno when it will be published at the haskell-mode site ..
Would be really nice :)

Alex Ott said...

2ahamay: http://xtalk.msk.su/~ott/files/haskell-font-lock.diff.gz

ahamay said...

Thx - my real problem was not seeing lambda and co as I tried it emacs 22 before. But I like your additions =)

Alex Ott said...

2ahamay: try to play with 'unicode instead of t as value for haskell-font-lock-symbols

ahamay said...

(setq haskell-font-lock-symbols 'unicode) does not work in my emacs22, either...
But nevermind, I switched to emacs-snapshot-gtk and everything is fine =)
It is much nicer anyways with its anti-aliased fonts.

Eli L. said...

What font are you using? I really like it...

Eli L. said...

Ah, I see that it's probably Monaco.

Alex Ott said...

Yes, this is Apple's Monaco