haskell: register interpreters and ignore .hi ext
This commit is contained in:
parent
5ea531ec62
commit
9a51c9b25d
1 changed files with 3 additions and 0 deletions
|
@ -4,10 +4,13 @@
|
||||||
:mode (("\\.hs$" . haskell-mode)
|
:mode (("\\.hs$" . haskell-mode)
|
||||||
("\\.ghci$" . ghci-script-mode)
|
("\\.ghci$" . ghci-script-mode)
|
||||||
("\\.cabal$" . haskell-cabal-mode))
|
("\\.cabal$" . haskell-cabal-mode))
|
||||||
|
:interpreter (("runghc" . haskell-mode)
|
||||||
|
("runhaskell" . haskell-mode))
|
||||||
:init
|
:init
|
||||||
(define-repl! haskell-mode switch-to-haskell)
|
(define-repl! haskell-mode switch-to-haskell)
|
||||||
(add-hook! haskell-mode '(interactive-haskell-mode flycheck-mode))
|
(add-hook! haskell-mode '(interactive-haskell-mode flycheck-mode))
|
||||||
:config
|
:config
|
||||||
|
(add-to-list 'completion-ignored-extensions ".hi")
|
||||||
;; haskell-mode complains that this function isn't defined, and it isn't!
|
;; haskell-mode complains that this function isn't defined, and it isn't!
|
||||||
(defun haskell-mode-after-save-handler ()))
|
(defun haskell-mode-after-save-handler ()))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue