   (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)

;; Use paredit for all the lisp modes I use.
(defun switch-on-paredit ()
  (turn-off-smartparens-mode)
  (smartparens-strict-mode -1)
  (paredit-mode 1))

(dolist (hook
         '(clojure-mode-hook
           emacs-lisp-mode-hook
           scheme-mode-hook
           lisp-mode-hook
           ielm-mode-hook))
  (add-hook hook 'switch-on-paredit))

(use-package paredit
  :diminish "")

;; Paredit's C-M-f and C-M-b are really handy but difficult to type.
(require 'paredit)
(define-key paredit-mode-map (kbd "s-f") #'paredit-forward)
(define-key paredit-mode-map (kbd "s-b") #'paredit-backward)
;; Likewise for other sexp commands.
(define-key paredit-mode-map (kbd "s-u") #'paredit-backward-up)
(define-key paredit-mode-map (kbd "s-d") #'paredit-forward-down)
(define-key paredit-mode-map (kbd "<s-backspace>") #'backward-kill-sexp)
(define-key paredit-mode-map (kbd "s-k") #'kill-sexp)
(define-key paredit-mode-map (kbd "s-t") #'transpose-sexps)
(define-key paredit-mode-map (kbd "s-n") #'paredit-forward-up)

;; Mark-sexp is also very useful but tricky to type.
(define-key paredit-mode-map (kbd "M-SPC") #'mark-sexp)

(use-package highlight-quoted
  :init

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

;; Common Lisp configuration
(use-package slime
  :config
  (setq inferior-lisp-program "/usr/bin/sbcl")
  (define-key slime-mode-map (kbd "C-c e") 'slime-eval-defun))

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