Do not insert equal sign if one already

Johan Andersson johan.rejeep at
Tue Nov 2 13:00:05 EDT 2010

Or maybe this is better so you can be anywhere in a line without inserting
the equal sign:

(unless (string-match "=" (buffer-substring-no-properties
(line-beginning-position) (line-end-position)))
    (insert "= "))

On Tue, Nov 2, 2010 at 5:52 PM, Johan Andersson <johan.rejeep at>wrote:

> Hey,
> It kind of bugs me that the function haskell-indent-insert-equal inserts an
> equal sign, even though there already is one before point. I have changed
> the function and recommend you do as well.
>     (unless (looking-back "=\\s-*") (insert "= "))
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Haskellmode-emacs mailing list