Bläddra i källkod

Minimally useful haskell-mode.

cray
Mitch Tishmack 11 år sedan
förälder
incheckning
d56d3470f5
1 ändrade filer med 26 tillägg och 8 borttagningar
  1. +26
    -8
      emacs/.emacs.d/emacs.org

+ 26
- 8
emacs/.emacs.d/emacs.org Visa fil

@@ -858,16 +858,34 @@ Make it even easier with hints like intellisense.
Need to make haskell source be all pretty.

#+BEGIN_SRC emacs-lisp
(use-package haskell-mode :defer t)
(use-package haskell-mode
:ensure t
:config
(progn
(use-package hindent
:ensure t
:config (progn
(add-hook 'haskell-mode-hook #'hindent-mode)
)
)
(use-package flycheck-haskell :ensure t)
(use-package flycheck-hdevtools
:ensure t
:defer t
:config (progn
(add-hook 'haskell-mode-hook 'flycheck-mode)
)
)
(add-hook 'haskell-mode-hook 'interactive-haskell-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
(add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent)
(customize-set-variable 'haskell-program-name "ghci")
(add-to-list 'completion-ignored-extensions ".hi")
(customize-set-variable 'haskell-font-lock-symbols t)
)
)
#+END_SRC

*** flycheck-haskell

And make flycheck whine when we effed something up.

#+BEGIN_SRC emacs-lisp
(use-package flycheck-haskell :defer t)
#+END_SRC
* mode related
*** common defaults



Laddar…
Avbryt
Spara