commit 9fbed05ae288028ee11e425710576bdd90533d1e parent a8c1432675c7b8706a5212d4163582e0fd802801 Author: MichaĆ M. Sapka <michal@sapka.me> Date: Fri, 3 Feb 2023 20:57:24 +0100 feat(emacs): better Circe config Diffstat:
M | emacs/.emacs.d/init.el | | | 49 | ++++++++++++++++++++++++++++++++----------------- |
1 file changed, 32 insertions(+), 17 deletions(-)
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el @@ -1,3 +1,5 @@ + + (prefer-coding-system 'utf-8) (set-default-coding-systems 'utf-8) (set-language-environment "UTF-8") @@ -38,23 +40,36 @@ ) ;; IRC -(use-package circe) - -(setq circe-network-options - '(("AfterNET" :host "irc.afternet.org" :port (6697 . 9998) - :nick "d-s" - :tls t - :channels ("#dosgameclub") - ))) - -(setq circe-default-realname "https://michal.sapka.me" - circe-ignore-list nil - circe-server-coding-system '(utf-8 . undecided)) - -(setq lui-max-buffer-size 30000 - lui-flyspell-p t - lui-flyspell-alist '(("+linux.de" "german8") - ("." "american"))) +(use-package circe + :ensure t + :config + (require 'circe-lagmon) + (ignore-errors + (require 'circe-rainbow) + (require 'circe-probe)) + (require 'circe-color-nicks) + (require 'circe-new-day-notifier) + (require 'lui-irc-colors) + (setq circe-default-realname "https://michal.sapka.me" + circe-ignore-list nil + circe-server-coding-system '(utf-8 . undecided) + lui-max-buffer-size 30000 + lui-flyspell-p t + lui-flyspell-alist '(("." "american")) + circe-network-options '(("AfterNET" :host "irc.afternet.org" :port (6697 . 9998) + :nick "d-s" + :tls t + :channels ("#dosgameclub") + ))) + (enable-lui-track-bar) + (enable-circe-color-nicks) + (add-hook 'circe-chat-mode-hook 'my-circe-prompt) + (defun my-circe-prompt () + (lui-set-prompt + (concat (propertize (concat (buffer-name) ">") + 'face 'circe-prompt-face) + " "))) + ) ;; Boring work stuff (use-package robe)