k-bx / ormolu.el

A formatter for Haskell source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ormolu.el

Format Haskell source code using ormolu. Requires reformatter.el.

Usage

With use-package:

(use-package ormolu
 :hook (haskell-mode . ormolu-format-on-save-mode)
 :config
 (:map haskell-mode-map
   ("C-c r" . ormolu-format-buffer)))

Without:

(push "~/.elib/contrib/reformatter.el" load-path)
(push "~/.elib/contrib/ormolu.el" load-path)
(load-library "ormolu")
(add-hook 'haskell-mode-hook 'ormolu-format-on-save-mode)

About

A formatter for Haskell source code


Languages

Language:Emacs Lisp 100.0%