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:
Henrik Lissner 2018-07-14 21:44:06 +02:00
parent 80c4abc8bf
commit e4db3f0020
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -12,6 +12,7 @@
(after! haskell-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)
(add-to-list 'completion-ignored-extensions ".hi"))