Skip to content

Instantly share code, notes, and snippets.

@maikf
Last active October 25, 2017 14:06
Show Gist options
  • Save maikf/ef870e9c948cfb7d7e2a3bf70fe6415f to your computer and use it in GitHub Desktop.
Save maikf/ef870e9c948cfb7d7e2a3bf70fe6415f to your computer and use it in GitHub Desktop.
minimal Emacs config for HIE
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(package-initialize)
(or (file-exists-p package-user-dir)
(package-refresh-contents))
(setq package-selected-packages '(haskell-mode flycheck))
(package-install-selected-packages)
(add-to-list 'load-path "~/src/haskell-ide/lsp-haskell")
(add-to-list 'load-path "~/src/haskell-ide/lsp-mode")
(with-eval-after-load 'lsp-mode
(require 'lsp-flycheck))
(require 'lsp-haskell)
(require 'lsp-mode)
(add-to-list 'haskell-mode-hook #'lsp-haskell-enable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment