From c572d7cb8f7eaf3cb3bc3f4103d7fc93091aa2be Mon Sep 17 00:00:00 2001 From: Swaroop C H Date: Sun, 15 Mar 2015 20:04:32 -0700 Subject: [PATCH] Enable ERC spell mode only if prelude-flyspell --- modules/prelude-erc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/prelude-erc.el b/modules/prelude-erc.el index 4a9c94b..9f51938 100644 --- a/modules/prelude-erc.el +++ b/modules/prelude-erc.el @@ -74,7 +74,8 @@ (erc-truncate-mode +1) ;; enable spell checking -(erc-spelling-mode 1) +(when prelude-flyspell + (erc-spelling-mode 1)) ;; set different dictionaries by different servers/channels ;;(setq erc-spelling-dictionaries '(("#emacs" "american")))