Add support for folding haskell code blocks

This commit is contained in:
Patrick Elliott 2018-07-19 16:37:22 +02:00
parent 3a5af1d591
commit 864e15f19d

View file

@ -11,7 +11,8 @@
:hook (haskell-mode . hindent-mode))
(after! haskell-mode
(add-hook 'haskell-mode-hook 'subword-mode)
(add-hook 'haskell-mode-hook 'subword-mode) ;; improves text navigation with camelCase:
(add-hook 'haskell-mode-hook 'haskell-collapse-mode) ;; support collapsing haskell code blocks.
(add-hook 'haskell-mode-hook #'interactive-haskell-mode)
(set-lookup-handlers! 'haskell-mode :definition #'haskell-mode-jump-to-def-or-tag)
(set-file-template! 'haskell-mode :trigger #'haskell-auto-insert-module-template :project t)
@ -25,5 +26,7 @@
:n "b" #'haskell-process-cabal-build
:n "c" #'haskell-cabal-visit-file
:n "p" #'hindent-reformat-buffer
:v "p" #'hindent-reformat-region))
:v "p" #'hindent-reformat-region
:n "h" #'haskell-hide-toggle
:n "H" #'haskell-hide-toggle-all))