From a0b0e04d9f47729697eba4bb491b647bfd8d81f9 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 20 May 2013 12:44:49 +0100 Subject: Emacs: Don't call redshank-mode if redshank is not loaded --- emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/init.el b/emacs/init.el index 877e5fd3..9c17e403 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -831,7 +831,8 @@ Also returns nil if pid is nil." (if (featurep 'autopair) (autopair-mode -1)) (paredit-mode +1) - (redshank-mode +1) + (if (featurep 'redshank) + (redshank-mode +1)) (eldoc-add-command 'paredit-backward-delete 'paredit-close-round) (if (featurep 'auto-indent-mode) -- cgit 1.4.1