doomemacs/modules/module-haskell.el

25 lines
864 B
EmacsLisp
Raw Normal View History

2016-03-29 13:06:37 +08:00
;;; module-haskell.el
(use-package haskell
2016-04-09 02:07:16 +08:00
:mode (("\\.hs$" . haskell-mode)
("\\.ghci$" . ghci-script-mode)
("\\.cabal$" . haskell-cabal-mode))
:interpreter (("runghc" . haskell-mode)
("runhaskell" . haskell-mode))
:init
2016-03-30 06:11:56 +08:00
(define-repl! haskell-mode switch-to-haskell)
2016-04-03 01:22:49 +08:00
(add-hook! haskell-mode '(interactive-haskell-mode flycheck-mode))
:config
(add-to-list 'completion-ignored-extensions ".hi")
2016-03-29 13:06:37 +08:00
;; haskell-mode complains that this function isn't defined, and it isn't!
(defun haskell-mode-after-save-handler ()))
2016-03-30 06:11:56 +08:00
(use-package inf-haskell
:commands (inferior-haskell-mode inf-haskell-mode switch-to-haskell)
:init (evil-set-initial-state 'inferior-haskell-mode 'emacs)
:config
(define-key inf-haskell-mode-map (kbd "ESC ESC") 'narf/popup-close))
2016-03-29 13:06:37 +08:00
(provide 'module-haskell)
;;; module-haskell.el ends here