Add support for folding haskell code blocks
This commit is contained in:
parent
3a5af1d591
commit
864e15f19d
1 changed files with 5 additions and 2 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue