[Xemacs] x-symbol mode for Haskell

Hi, I've always liked the X-Symbol package for Xemacs http://x-symbol.sourceforge.net/ I've searched for Haskell X-Symbol modes, but there doesn't seem to be one. It's kind of strange because it seems to me like most people who are into haskell would like to use non-ascii symbols like greek letters and some nice looking operators - just take a look at some haskell books, LaTeX modes for haskell etc. I tried to hack an x-symbol haskell mode. *I know nothing about elisp* or x-symbol internals so the mode is bloated with useless stuff and *does not works* properly (yet?). It is in fact just a very dirty non working hack... right now I just can't spend much time with it. I thought I'd ask if anyone (preferably with more experience :) is doing, or thinking about doing some good haskell x-symbol mode. J.A. P.S.: Just in case you want to take a look at it here to understand what it is supposedd to do, it goes in attchment. After installing it try typing something like f :: Num _alpha => [_alpha] -> [_alpha] f x = x+x The _alphas will turn into real alphas as you type them, the => and -> will also turn into good looking non-ascii arrows. :) The main problem is that the source file is not beeing saved correctly (decode token works, but not encode token), so you're not going to be able to compile it. Of course there are many other problems like <= turning into an arrow instead of a "less than equal", etc etc etc :) How to install it: X-Symbol: - download the latest x-symbol version. - run xemacs as root - M-x package-admin-add-binary-package (it will tell you the directory where it is installed) The quick-dirty-non-usable-x-symbol-haskell-mode :) - save the "x-symbol-haskell.el" and "x-symbol-hooks.el" files - compile them (open in xemacs, right click buffer, byte-compile this file) - copy (as root) the .el and .elc files to the directory where your other x-symbol .el and .elc files are. You may want to back up your old "x-symbol-hooks.el" file. To "use" it just "M-x x-symbol-mode" in an haskell buffer and type away.
participants (1)
-
Jorge Adriano