 (use-package paredit
   :diminish paredit-mode
   :config
-  (add-to-hooks #'enable-paredit-mode `(lisp-mode-hook emacs-lisp-mode-hook)))
+  (mattr/add-to-hooks
+   #'enable-paredit-mode `(lisp-mode-hook emacs-lisp-mode-hook)))
 
 (use-package powerline
   :config

(use-package ispell
  :bind (("C-c i" . ispell-buffer))
  :init
  (add-to-hooks #'flyspell-mode
		`(git-commit-mode-hook
		  jabber-chat-mode-hook
		  rst-mode-hook
		  sphinx-doc-mode-hook)))

(use-package magit
  :bind (("C-c m" . magit-status)))

(use-package jabber
  :load-path user-lisp-directory

(defvar user-lisp-directory (expand-file-name "~/elisp")
  "Place to load local LISP code from.")

(defun mattr/add-to-hooks (function mode-hooks)
  "Add FUNCTION to multiple modes MODE-HOOKS."
  (mapc (lambda (hook) (add-hook hook function)) mode-hooks))

