From 752a6b55b5acf3a6dc9aa2a173b6c7816b67869d Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Tue, 25 Jun 2013 11:12:54 -0500 Subject: Tons more cleanups after emacs24 update. --- init.el | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 7bf099f..6f2a921 100644 --- a/init.el +++ b/init.el @@ -7,7 +7,6 @@ (setq-default ediff-split-window-function 'split-window-horizontally ; diff horizontally - x-select-enable-clipboard t ; paste from X buffer inhibit-splash-screen t ; disable splash screen truncate-lines t ; truncate, not wrap, lines indent-tabs-mode nil ; only uses spaces for indentation @@ -136,7 +135,6 @@ ;;; custom inits (require 'c-init) ; c specific elisp (require 'align-with-spaces) ; use only spaces for alignment -(require 'pastebin-region) ; send selected text to pastebin (require 'move-line) ; move line up or down (require 'uniquify) ; unique buffer names with dirs @@ -177,7 +175,7 @@ ;;; js2-mode (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) -(add-hook 'js-mode-hook 'js2-minor-mode) +(setq-default ac-js2-evaluate-calls t) ;;; zencoding-mode - html (add-hook 'sgml-mode-hook 'zencoding-mode) ; Auto-start on any markup modes @@ -199,9 +197,12 @@ (add-hook 'haskell-mode-hook (lambda () - ;; (ghc-init) - (turn-on-haskell-indent) + ;; (ghc-init) ;; this breaks stuff + (local-set-key (kbd "C-c i") 'haskell-navigate-imports) ; go to imports. prefix to return + (flymake-haskell-multi-load) + (flymake-mode) (capitalized-words-mode) + (turn-on-haskell-indent) (turn-on-haskell-doc-mode) (turn-on-haskell-decl-scan) (imenu-add-menubar-index) @@ -213,3 +214,15 @@ haskell-indent-offset 4 whitespace-line-column 78) )) + +;;; ghci-mode +(add-hook 'inferior-haskell-mode-hook 'turn-on-ghci-completion) + +;;; flymake-mode +(add-hook + 'flymake-mode-hook + (lambda () + (local-set-key (kbd "C-1") 'flymake-display-err-menu-for-current-line) + (local-set-key (kbd "C-.") 'flymake-goto-next-error) + (local-set-key (kbd "C-,") 'flymake-goto-prev-error) + )) -- cgit v1.2.3