Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions haskell-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,28 @@ Minor modes that work well with `haskell-mode':
t)
(haskell-indentation-mode))

(defcustom haskell-mode-hook '(haskell-indentation-mode interactive-haskell-mode)
"List of functions to run after `haskell-mode' is enabled.

Use to enable minor modes coming with `haskell-mode' or run an
arbitrary function.

Note that `inf-haskell-mode' should not be enabled at the same
time as `haskell-interactive-mode', same exclusion principle
applies to `haskell-indentation-mode' and `haskell-indent-mode'."
:group 'haskell
:type 'hook
:options '(capitalized-words-mode
flyspell-prog-mode
haskell-decl-scan-mode
haskell-indent-mode
haskell-indentation-mode
highlight-uses-mode
imenu-add-menubar-index
inf-haskell-mode
interactive-haskell-mode
turn-on-haskell-unicode-input-method))

(defun haskell-fill-paragraph (justify)
(save-excursion
;; Fill paragraph should only work in comments.
Expand Down