Emacs haskell-mode Unicode Cuteness

Paul Brown @ 2007-09-15T18:21:00Z

With haskell-mode for Emacs, hidden away in haskell-font-lock.el, is the variable haskell-font-lock-symbols. Setting it to 'unicode' will make Emacs do pretty things for anonymous functions:

and composition:

among others. Nice. (N.B. it can interfere with alignment, but I have yet to run into any issues.)

Meta

Tags: (tag) (tag) (tag)

(comment bubbles) 3 comments
2921 direct views

Comment from manu @ 2007-10-03T04:34:27Z # permalink

Hello, I'm on a mac and this works fine with the Carbonized version of emacs, but no so well with regular emacs in terminal where non ASCII character are turned into ? Any idea ? Thanks

Comment from Paul Brown @ 2007-10-03T11:46:31Z # permalink

@manu: I've been using the Aquamacs port myself with good results. Is the emacs from the commandline the same as the Carbon-ized emacs? It's possible that you either don't have the same haskell support libraries installed or that you don't have the configuration file for that version. Other than that, I'm not sure what to suggest.

Comment from gwern @ 2008-01-27T23:49:07Z # permalink

Manu: I would think the problem is fonts. Not all fonts support the Unicode points used by this feature (I would know, as I merged in some of the characters from the old pretty-lambda package :). Make sure the font used by the terminal is the one being used by Emacs.