On Wed, Jan 28, 2009 at 6:30 AM, Colin Paul Adams
<[email protected]> wrote:
>>>>>> "Alex" == Alex Ott <[email protected]> writes:
>
>    Alex> Hello For Emacs users it could be interesting - I wrote
>    Alex> small module for more comfortable work with HLint from
>    Alex> Emacs. It has same functionality as compilation-mode -
>    Alex> navigation between errors, etc.
>
>    Alex> To use it, just add following code to emacs init file:
>
>    Alex> (require 'hs-lint) (defun my-haskell-mode-hook ()
>    Alex> (local-set-key "\C-cl" 'hs-lint)) (add-hook
>    Alex> 'haskell-mode-hook 'my-haskell-mode-hook)
>
> I've done that.
>
> Now how do you get it to do anything?
> --
> Colin Adams

Presumably now every time you use C-c l to load the current buffer
into GHCi, it'll show hlint warnings about that file (in addition to
whatever -Wall warnings you've enabled). It's a straightforward use of
Emacs hooks.

-- 
gwern
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to