Guest User

Untitled

a guest
Mar 16th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 1.38 KB | None | 0 0
  1. ; Colorize nicks.
  2. (require 'erc-highlight-nicknames)
  3. (add-to-list 'erc-modules 'highlight-nicknames)
  4. (erc-update-modules)
  5.  
  6. ; Timestamp color.
  7. (set-face-foreground 'erc-timestamp-face "dimgrey")
  8.  
  9. ; Color of my nick in messages.
  10. (set-face-background 'erc-current-nick-face "red")
  11. ;(set-face-foreground 'erc-current-nick-face "grey") Doesn't work becuase of md5 coloring.
  12.  
  13. ; Align nicks 17 spaces to the right and messages to the left.
  14. (setq erc-fill-function 'erc-fill-static)
  15. (setq erc-fill-static-center 17)
  16.  
  17. ; Don't show joins, quits, and parts.
  18. (setq erc-hide-list '("JOIN" "QUIT" "PART"))
  19.  
  20. ; Move timestamp to the left and show seconds too.
  21. (setq erc-insert-timestamp-function 'erc-insert-timestamp-left)
  22. (setq erc-timestamp-format "%T")
  23.  
  24. ; Keep neweset message at bottom of screen.
  25. (erc-scrolltobottom-enable)
  26.  
  27. ; Enable spell check.
  28. (erc-spelling-mode 1)
  29.  
  30. ; Use the "@" and "+" prefixes.
  31. (setq erc-format-nick-function 'erc-format-@nick)
  32.  
  33. ; Ugly hack to get wrapping to adjust to window resizes.
  34. (make-variable-buffer-local 'erc-fill-column)
  35. (add-hook 'window-configuration-change-hook
  36.     '(lambda ()
  37.           (save-excursion
  38.             (walk-windows
  39.          (lambda (w)
  40.            (let ((buffer (window-buffer w)))
  41.              (set-buffer buffer)
  42.              (when (eq major-mode 'erc-mode)
  43.                (setq erc-fill-column (- (window-width w) 1)))))))))
Add Comment
Please, Sign In to add comment