Emacs config utilizing prelude as a base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.7 KiB

  1. # Prelude ERC
  2. ERC is a popular IRC client bundled with Emacs.
  3. ERC is both powerful and complex, that's why Prelude bundles
  4. some configuration for it, together with a few handy commands
  5. like `start-irc` and `stop-irc`.
  6. ## Customizing Server list
  7. If you want to join a list of servers on `M-x start-irc`, other than
  8. the default list, please redefine the variable `my-fav-irc` as follows
  9. in your personal config:
  10. ```emacs-lisp
  11. (setq my-fav-irc '("irc.freenode.net"
  12. "irc.oftc.net"
  13. "irc.mozilla.org"
  14. "irc.gnome.org"))
  15. ```
  16. ## Customizing Last Quit Message
  17. If you want to customize your IRC Last Quit Message from *Asta la
  18. vista* to something more funkier, please redefine `bye-irc-message` as
  19. follows:
  20. ```emacs-lisp
  21. (setq bye-erc-message "adios")
  22. ```
  23. ## Reading NickServ passwords from auth-source plugin
  24. If you want to automatically authenticate while logging into IRC
  25. servers set the `erc-prompt-for-password` to nil as follows:
  26. ```emacs-lisp
  27. (setq erc-prompt-for-password nil)
  28. ```
  29. Now you can set password in plaintext in `.authinfo` file in the netRC
  30. format or you it encrypted in `.authinfo.gpg` file after setting up gpg
  31. in Emacs.
  32. ## Opening all ERC buffers in a new perspective
  33. Many a time when we start IRC with the `start-irc` command, all the
  34. channels open in our existing workspace, which can be annoying to
  35. some; especially to those who like to organize their buffers into
  36. separate groups (perspectives). To avoid this scenario, it is better
  37. to group all the ERC buffers into one perspective called `IRC` when
  38. `start-irc` is called. To enable this set the `prelude-new-irc-persp`
  39. variable to true as follows:
  40. ```emacs-lisp
  41. (setq prelude-new-irc-persp t)
  42. ```