Does anyone know how I can print λ instead of \ using haskell in emacs. I know that one can use haskell-font-lock-symbols, but I find the rest of them hard to read – the arrows are TOO small!
Is there a simple way of over-riding the rest of the keys?
You can do this:
This adds the lambda as a keyword, meaning that it won’t appear in escape sequences in strings for example (TODO: this is not the case after changing a thing). The
,(make-char 'greek-iso8859-7 107)is of course equivalent to?λ, but you must make sure that your Emacs init file is encoded as unicode in that case.You can also enable full symbol font locking and use a better (read: with wider arrows) font, like Pragmata Pro, Inconsolata or Ubuntu Monospace. I use the following code to select a good font: