-
-
Save cstrahan/bba4e470bef643c071664e2143e96e79 to your computer and use it in GitHub Desktop.
Private spacemacs layer to try out Chris Done's Intero mode for haskell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 1. place this in ~/.emacs.d/private/intero/packages.el | |
;; 2. add intero, syntax-checking and auto-completion to your | |
;; ~/.spacemacs layer configuration & remove the haskell layer | |
;; if you were using that before | |
;; 3. make sure you have stack installed http://haskellstack.org | |
;; 4. fire up emacs & open up a stack project's source files | |
(defconst intero-packages | |
'(company | |
flycheck | |
haskell-mode | |
hindent | |
(intero :location (recipe | |
:repo "chrisdone/intero" | |
:fetcher github | |
:files ("elisp/intero.el"))))) | |
(defun intero/init-hindent () | |
(use-package haskell-mode)) | |
(defun intero/post-init-hindent () | |
(add-hook 'intero-mode-hook 'hindent-mode)) | |
(defun intero/post-init-company () | |
(add-hook 'intero-mode-hook 'company-mode)) | |
(defun intero/post-init-flycheck () | |
(spacemacs/add-flycheck-hook 'intero-mode-hook)) | |
(defun intero/init-haskell-mode () | |
(use-package haskell-mode)) | |
(defun intero/post-init-haskell-mode () | |
(add-hook 'haskell-mode-hook 'intero-mode)) | |
(defun intero/init-intero () | |
(use-package intero)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment