summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorKรฉvin Le Gouguec <kevin.legouguec@gmail.com>2022-09-14 08:06:29 +0200
committerKรฉvin Le Gouguec <kevin.legouguec@gmail.com>2022-11-20 18:29:33 +0100
commit32d1bb352c6f6be3b503de7fa62a58abff3b7dbc (patch)
treeabc7f71faebb34bc666c9ae295daaa02f3443669 /.emacs
parent912678b875d0940628f4f4184f2d56f7a7aa78a5 (diff)
downloaddotfiles-32d1bb352c6f6be3b503de7fa62a58abff3b7dbc.tar.xz
Keep porting to use-package
That one was a doozy.
Diffstat (limited to '.emacs')
-rw-r--r--.emacs25
1 files changed, 25 insertions, 0 deletions
diff --git a/.emacs b/.emacs
index d786880..64a2264 100644
--- a/.emacs
+++ b/.emacs
@@ -649,6 +649,14 @@
;; Trying out use-package.
+(defun my/list-update (l to-add to-remove)
+ (thread-first
+ l (seq-union to-add) (seq-difference to-remove)))
+
+(if (fboundp 'setopt)
+ (defalias 'my/setopt 'setopt)
+ (defalias 'my/setopt 'customize-set-variable))
+
(use-package ediff
:custom
(ediff-merge-split-window-function 'split-window-vertically)
@@ -660,6 +668,23 @@
(eldoc-echo-area-use-multiline-p nil)
:delight "๐Ÿ“–")
+(use-package erc
+ :custom
+ (erc-log-channels-directory "~/.irc-logs")
+ (erc-log-write-after-insert t)
+ (erc-log-write-after-send t)
+ (erc-notifications-icon
+ (concat data-directory "images/icons/hicolor/scalable/apps/emacs.svg"))
+ (erc-notifications-mode t)
+ (erc-prompt-for-nickserv-password nil)
+ (erc-prompt-for-password nil)
+ (erc-track-exclude-types '("JOIN" "NICK" "PART" "QUIT" "333" "353"))
+ (erc-use-auth-source-for-nickserv-password t)
+ (erc-user-full-name 'user-full-name)
+ :config
+ (my/setopt erc-modules (my/list-update
+ erc-modules '(log notifications) '(fill))))
+
(use-package icomplete
:config
(setq icomplete-scroll t)