Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 779 Bytes

starter-kit-haskell.org

File metadata and controls

27 lines (23 loc) · 779 Bytes

Starter Kit Haskell

This is part of the Emacs Starter Kit.

Starter Kit Haskell

Support for editing Haskell

pretty lambdas in Haskell code

(defun pretty-lambdas-haskell ()
  (font-lock-add-keywords
   nil `((,(concat "(?\\(" (regexp-quote "\\") "\\)")
          (0 (progn (compose-region (match-beginning 1) (match-end 1)
                                    ,(make-char 'greek-iso8859-7 107))
                    nil))))))

Haskell mode hook

(add-hook 'haskell-mode-hook 'run-starter-kit-coding-hook)
(when (window-system)
  (add-hook 'haskell-mode-hook 'pretty-lambdas-haskell))