diff options
author | Amin Bandali <bandali@gnu.org> | 2021-04-07 16:58:20 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2021-04-07 17:00:21 -0400 |
commit | 5b853dffbfdeb2a7b462e7872e3cfc1787896ee6 (patch) | |
tree | c13524cfed24433d5fee03e572b9e99ab546567b | |
parent | 6ff057acce6346a264ed839d27d6d5245a36f4c7 (diff) | |
download | configs-5b853dffbfdeb2a7b462e7872e3cfc1787896ee6.tar.gz configs-5b853dffbfdeb2a7b462e7872e3cfc1787896ee6.tar.xz configs-5b853dffbfdeb2a7b462e7872e3cfc1787896ee6.zip |
Tweak ERC settings, including enabling logging
-rw-r--r-- | .emacs.d/lisp/bandali-erc.el | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/.emacs.d/lisp/bandali-erc.el b/.emacs.d/lisp/bandali-erc.el index bc0657a..1670af6 100644 --- a/.emacs.d/lisp/bandali-erc.el +++ b/.emacs.d/lisp/bandali-erc.el @@ -32,10 +32,10 @@ (csetq erc-auto-query 'bury erc-autojoin-domain-only nil - erc-dcc-get-default-directory (b/var "erc/dcc/") + erc-dcc-get-default-directory (b/var "erc/dcc") + erc-email-userid "bandali" erc-format-nick-function 'erc-format-@nick erc-join-buffer 'bury - erc-log-channels-directory (b/var "erc/log-channels/") erc-lurker-hide-list '("JOIN" "PART" "QUIT") erc-nick "bandali" erc-prompt "erc>" @@ -61,9 +61,10 @@ "Deop myself from current channel." (erc-cmd-DEOP (format "%s" (erc-current-nick)))) (add-to-list 'erc-modules 'keep-place) + (add-to-list 'erc-modules 'log) (when (display-graphic-p) - (add-to-list 'erc-modules 'notifications)) - (add-to-list 'erc-modules 'smiley) + (add-to-list 'erc-modules 'notifications) + (add-to-list 'erc-modules 'smiley)) (add-to-list 'erc-modules 'spelling) (declare-function erc-update-modules "erc") (erc-update-modules) @@ -93,6 +94,17 @@ ;; to disable: ;; (erc-fill-mode -1) + ;; erc-log + (csetq + ;; erc-enable-logging 'erc-log-all-but-server-buffers + erc-generate-log-file-name-function 'erc-generate-log-file-name-with-date + erc-log-channels-directory (b/var "erc/logs") + erc-log-file-coding-system 'utf-8 + erc-log-write-after-insert t + erc-log-write-after-send t + erc-save-buffer-on-part nil + erc-save-queries-on-quit nil) + ;; erc-match (csetq erc-pal-highlight-type 'nick |