Added default channel encoding.

Pascal J. Bourguignon [2018-03-31 18:46]
Added default channel encoding.
Filename
pjb-erc.el
diff --git a/pjb-erc.el b/pjb-erc.el
index 575258a..2fdef8b 100644
--- a/pjb-erc.el
+++ b/pjb-erc.el
@@ -1124,8 +1124,10 @@ command).
                (("#emacs")
                 . el-eval-last-expression)
                (("#scheme")
-                . scheme-eval-last-expression))
-        when (member* current-channel channels :test (function string=))
+                . scheme-eval-last-expression)
+               (t . cl-eval-last-expression))
+        when (or (eql channels t)
+                 (member* current-channel channels :test (function string=)))
           do (local-set-key (kbd "C-x C-e") eval-function)))

 (add-hook 'erc-join-hook 'pjb/erc-join-meat)
ViewGit