 
 (require 'rvm)
 (rvm-use-default)
-

;;(autoload 'ghc-debug "ghc" nil t)
;;(add-hook 'haskell-mode-hook (lambda () (ghc-init)))
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'haskell-mode-hook 'haskell-indent-mode)

;; in text mode do spellchecking
(add-hook 'text-mode-hook 'flyspell-mode)

     (setq ruby-deep-indent-paren-style nil)
     (define-key ruby-mode-map (kbd "C-x e") 'ruby-send-whole-buffer)
     (define-key ruby-mode-map (kbd "C-x C-e") 'ruby-send-whole-buffer)
     (defun ruby-send-whole-buffer ()
       (interactive)
       (save-buffer)
       (ruby-load-file (buffer-file-name (current-buffer))))))

(add-hook 'emacs-lisp-mode-hook (lambda ()
                                  (paredit-mode +1)
                                  (rainbow-delimiters-mode +1)))
(add-hook 'clojure-mode-hook (lambda ()
                                  (paredit-mode +1)
                                  (rainbow-delimiters-mode +1)))

