     (setq which-key-idle-delay 0.2))
   :diminish which-key-mode)
 
-(use-package hydra)
-
 (use-package undo-tree
   :config (global-undo-tree-mode)
   :diminish undo-tree-mode)

;; For some reason "<escape>" and "ESC" differ here, it
;; undoes all meta keys otherwise
(amap "<escape>" 'evil-normal-state)

(defhydra hydra-buffer ()
  "Change buffer quickly"
  ("d" evil-next-buffer)
  ("a" evil-prev-buffer)
  ("q" evil-delete-buffer))
(nmap "SPC w" 'hydra-buffer/body)

(nmap "SPC SPC" 'counsel-M-x)
(nmap "SPC 1" 'delete-other-windows
      "SPC 2" 'ivy-switch-buffer
      "SPC 3" 'counsel-find-file
      "SPC 4" 'zsh-terminal)

(defhydra hydra-fonts ()
  "Change font settings interactively"
  ("w" text-scale-increase "larger")
  ("s" text-scale-decrease "smaller")
  ("d" (choose-font-if-exists "Dina") "Dina")
  ("a" (choose-font-if-exists "Source Code Pro") "SCP"))
(nmap "SPC z" 'hydra-fonts/body)

(amap
 "C-<right>" 'sp-forward-sexp

  :config (slime-setup))

;; Python
(use-package anaconda-mode :defer)
(use-package company-anaconda :defer)

(defun pyhook ()
  "Start my py mode."
  (interactive)
  (anaconda-mode)
  (anaconda-eldoc-mode)
  (add-to-list 'company-backends '(company-anaconda)))
(add-hook 'python-mode-hook 'pyhook)

;; C/C++
(use-package irony
