January 11, 2009

Running HLint from Emacs

I wrote small module for more comfortable work with HLint from Emacs. It has same functionality as compilation-mode - navigation between errors, etc.
To use it, just add following code to emacs init file:
(require 'hs-lint)
(defun my-haskell-mode-hook ()
(local-set-key "\C-cl" 'hs-lint))
(add-hook 'haskell-mode-hook 'my-haskell-mode-hook)
and after this, you'll be able to run hs-lint command with C-c l key binding when you open your filw with Haskell source code

1 comments:

gregheartsfield.com said...

Thanks, this is a handy tool. I'll be using this a lot!