_ ___ _ __ ___ | | ___ __ _ __ _ ___ _ __ / _ \ '__/ __|____| |/ _ \ / _` |/ _` |/ _ \ '__| | __/ | | (_|_____| | (_) | (_| | (_| | __/ | \___|_| \___| |_|\___/ \__, |\__, |\___|_| |___/ |___/
This is a simple irc logger written in elisp! It's used for logging all the irc channels you've joined and automatically organizing them into folders by date.
- clone this repo to any location
- add the path of the repo to
load-path
- byte compile the source file
erc-logger.el
usingbyte-compile-file
write the following config with any file name (eg. .erc.emacs
)
;; .erc.emacs (add-to-list 'load-path "__PATH_TO_THE_REPO__") (require 'erc-logger) (require 'erc-join) ;; You may customize some options using ;; M-x customize-group erc-logger (erc-autojoin-mode 1) (erc :server "irc.libera.chat" :port 6667 :nick "__YOUR_NICKNAME__" :password "__YOUR_PASSWORD__") (setq erc-autojoin-channels-alist '(("libera.chat" "#c" "#c++" "#linux" "#lisp" "##c++" "#clasp" "#clojure" "#guile" "#vim" "#neovim" "#emacs" "#erc"))) (erc-logger-log-start))))
You can run with emacs daemon
emacs -l /path/to/.erc.emacs --daemon=/path/to/socket-file
and connect with emacs-client
emacs-client -nw -c -s /path/to/socket-file
You can join new channel at run time using /join
.