 ;; Trim trailing whitespace on save. This will get rid of end-of-line
 ;; whitespace, and reduce the number of blank lines at the end of the
 ;; file to one.
-(add-hook 'before-save-hook 'delete-trailing-whitespace)
+(add-hook 'before-save-hook #'delete-trailing-whitespace)
 
 ;; Add a trailing newline if there is not one already, when saving.
 ;; This is enabled for default for certain modes, but we want it


  ;; Enable Paredit when editing Lisps and using Lisp REPLs.

  (dolist (hook '(emacs-lisp-mode-hook
                  lisp-interaction-mode-hook
                  scheme-mode-hook))
    (add-hook hook 'enable-paredit-mode))

  (when (radian-package-enabled-p 'clojure-mode)
    (add-hook 'clojure-mode-hook 'enable-paredit-mode))

  (when (radian-package-enabled-p 'cider)
    (add-hook 'cider-repl-mode-hook 'enable-paredit-mode))

  (when (radian-package-enabled-p 'geiser)
    (add-hook 'geiser-repl-mode-hook 'enable-paredit-mode)))

;; Keeps indentation correct at all times.
(use-package aggressive-indent

  :init

  ;; Enable Irony for C, C++, and Objective-C files.
  (add-hook 'c-mode-hook #'irony-mode)
  (add-hook 'c++-mode-hook #'irony-mode)
  (add-hook 'objc-mode-hook #'irony-mode)

  :config

