]> git.rkrishnan.org Git - .emacs.d.git/commitdiff
switch to intero for haskell
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Fri, 2 Sep 2016 13:52:05 +0000 (19:22 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Fri, 2 Sep 2016 13:52:36 +0000 (19:22 +0530)
init.el
packages.el

diff --git a/init.el b/init.el
index 946b0db0359a4b68e8f301f1237f47f4bca5c653..a201655ba911012e211d07fe32eeae866e53a3ab 100644 (file)
--- a/init.el
+++ b/init.el
 
 ;; font
 ;; (set-default-font "Inconsolata-12")
-(set-default-font "InconsolataGo-12")
+;; (set-default-font "InconsolataGo-12")
+;; set a default font
+(when (member "DejaVu Sans Mono" (font-family-list))
+  (set-face-attribute 'default nil :font "DejaVu Sans Mono-11"))
 
 ;; Don't let Emacs hurt your ears
 (setq visible-bell t)
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
- '(flycheck-haskell-runghc-command
-   (quote
-    ("stack" "--verbosity" "silent" "runghc" "--no-ghc-package-path" "--")))
- '(haskell-process-auto-import-loaded-modules t)
- '(haskell-process-log t)
- '(haskell-process-suggest-remove-import-lines t)
- '(haskell-process-type (quote cabal-repl))
  '(initial-frame-alist (quote ((fullscreen . maximized))))
  '(send-mail-function (quote smtpmail-send-it)))
 
       c-basic-offset 4)
 
 ;; haskell
-(add-hook 'haskell-mode-hook #'hindent-mode)
-(add-hook 'haskell-mode-hook 'flyspell-prog-mode)
-
-(eval-after-load 'haskell-mode
-  '(define-key haskell-mode-map [f8] 'haskell-navigate-imports))
-
-
-
-;;; ghc-mod
-(let ((my-cabal-path (expand-file-name "~/.cabal/bin")))
-  (setenv "PATH" (concat my-cabal-path ":" (getenv "PATH")))
-  (add-to-list 'exec-path my-cabal-path))
-
-(autoload 'ghc-init "ghc" nil t)
-(autoload 'ghc-debug "ghc" nil t)
-(add-hook 'haskell-mode-hook (lambda () (ghc-init)))
-
-;; flycheck
-(eval-after-load 'flycheck
-  '(add-hook 'flycheck-mode-hook #'flycheck-haskell-setup))
-
-;; hlint
-(add-to-list 'load-path "~/.emacs.d/hs-lint")
-(require 'hs-lint)
-(defun my-haskell-mode-hook ()
-   (local-set-key "\C-cl" 'hs-lint))
-
-(add-hook 'haskell-mode-hook 'my-haskell-mode-hook)
+(add-hook 'haskell-mode-hook 'intero-mode)
 
 ;; gofmt
 (add-hook 'before-save-hook #'gofmt-before-save)
index 9892094fad6e89fc27843a5402a821b98173c121..c150774b941115c8b94e1372d4b03ff515a11fad 100644 (file)
@@ -41,6 +41,7 @@
                      markdown-mode
                      flycheck
                      flycheck-rust
+                     flycheck-haskell
                      racer
                      intero
                      debpaste))