 (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)))
-
 
 ;;(autoload 'ghc-init "ghc" nil t)
 ;;(autoload 'ghc-debug "ghc" nil t)

              yasnippet
              diminish
              auto-complete
              clojure-mode
              clojure-test-mode
              cider
              markdown-mode
              haskell-mode

  `(when (fboundp ,func) ,foo))

;; Diminish removes modes from your mode line
(when-available
 'diminish
 (progn
   (eval-after-load 'whitespace-mode '(diminish 'whitespace-mode))
   (eval-after-load 'elisp-slime-nav '(diminish 'elisp-slime-nav-mode))))

;; Fullscreen magit-status
(when-available
 'magit-svn
 (progn
   (defadvice magit-status (around magit-fullscreen activate)
     (window-configuration-to-register :magit-fullscreen)
     ad-do-it
     (delete-other-windows))
   (defun magit-quit-session ()
     "Restores the previous window configuration and kills the magit buffer"
     (interactive)
     (kill-buffer)
     (jump-to-register :magit-fullscreen))
   (define-key magit-status-mode-map (kbd "q") 'magit-quit-session)))

;; Colors and fonts
(set-frame-parameter nil 'font-backend "xft")
