   (add-hook 'emacs-lisp-mode-hook #'aggressive-indent-mode)
   :diminish "")
 
-;; Use lispy-mode in emacs-lisp
-(add-hook 'emacs-lisp-mode-hook #'lispy-mode)
-
-;; Work around https://github.com/abo-abo/lispy/issues/283
-(remove-hook 'python-mode-hook #'wisent-python-default-setup)
-
 (use-package lispy
   :config
+  ;; Use lispy-mode in emacs-lisp
+  (add-hook 'emacs-lisp-mode-hook #'lispy-mode)
+
   ;; Disable the lispy keybindings that I don't want:
   (define-key lispy-mode-map (kbd "M-.") nil)
   (define-key lispy-mode-map (kbd "M-,") nil)

    (delete-backward-char indent-size)))

;; Common Lisp configuration
(setq inferior-lisp-program "/usr/bin/sbcl")

(require 'slime)
(define-key slime-mode-map (kbd "C-c e") 'slime-eval-defun)

;; Ensure elisp code is continuously indented.
(use-package aggressive-indent

(eval-after-load 'flycheck
  '(add-hook 'flycheck-mode-hook #'flycheck-cask-setup))

;; A handy command for jumping to elisp function definitions. Rather
;; than using TAGS (which require updating), it simply uses Emacs'
;; knowledge of where the function is defined.
(use-package elisp-slime-nav
  :diminish ""
  :config
  (dolist (hook '(emacs-lisp-mode-hook ielm-mode-hook))
    (add-hook hook 'elisp-slime-nav-mode)))

(add-hook 'ielm-mode-hook #'company-mode)
(add-hook 'ielm-mode-hook #'eldoc-mode)
