Skip to content

Instantly share code, notes, and snippets.

@kidd
Created September 14, 2009 16:40
Show Gist options
  • Save kidd/186764 to your computer and use it in GitHub Desktop.
Save kidd/186764 to your computer and use it in GitHub Desktop.
(defvar erc-read-only-channels
'("#emacs-es")
"Lista de canales read-only.")
(defun erc-toggle-read-only ()
(when (member (buffer-name) erc-read-only-channels)
(toggle-read-only 1)))
(add-hook 'erc-join-hook 'erc-toggle-read-only)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment