Insert module file template in haskell files #752
Use file-template module instead of hook so it only gets triggered in a valid project.
This commit is contained in:
parent
80c4abc8bf
commit
e4db3f0020
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
(after! haskell-mode
|
(after! haskell-mode
|
||||||
(add-hook 'haskell-mode-hook #'haskell-interactive-mode)
|
(add-hook 'haskell-mode-hook #'haskell-interactive-mode)
|
||||||
|
(set-file-template! 'haskell-mode :trigger #'haskell-auto-insert-module-template :project t)
|
||||||
(set-repl-handler! '(haskell-mode haskell-cabal-mode literate-haskell-mode) #'+haskell-repl-buffer)
|
(set-repl-handler! '(haskell-mode haskell-cabal-mode literate-haskell-mode) #'+haskell-repl-buffer)
|
||||||
(add-to-list 'completion-ignored-extensions ".hi"))
|
(add-to-list 'completion-ignored-extensions ".hi"))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue