Skip to content

Restore customization for haskell-mode-hook #1304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2016
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