From 0c12bfae66a755964344d5085b49c0db2b3496e4 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Fri, 15 Apr 2022 15:28:26 -0500 Subject: [PATCH] Adding ERC stuff to Doom Emacs. --- .config/doom/config.el | 14 ++------------ .config/doom/config.org | 28 +++------------------------- 2 files changed, 5 insertions(+), 37 deletions(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index 0e84d7d..c8f62ce 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -228,22 +228,12 @@ List of keybindings (SPC h b b)") (use-package emojify :hook (after-init . global-emojify-mode)) -(setq erc-prompt (lambda () (concat "[" (buffer-name) "]")) - erc-server "irc.libera.chat" - ;; erc-autojoin-channels-alist '(("irc.libera.chat" "#emacs" "#linux")) - erc-nick "distrotube" - erc-user-full-name "Derek Taylor" - ;; By default, ERC selects the channel buffers when it reconnects. If you’d like it to connect to channels in the background, use this: - erc-auto-query 'bury - erc-fill-column 100 - erc-fill-function 'erc-fill-static - erc-fill-static-center 20) - (map! :leader (:prefix ("e". "evaluate/ERC/EWW") :desc "Launch ERC with TLS connection" "E" #'erc-tls)) -(setq erc-server "irc.libera.chat" +(setq erc-prompt (lambda () (concat "[" (buffer-name) "]")) + erc-server "irc.libera.chat" erc-nick "distrotube" erc-user-full-name "Derek Taylor" erc-track-shorten-start 24 diff --git a/.config/doom/config.org b/.config/doom/config.org index 942cfb9..93528a9 100644 --- a/.config/doom/config.org +++ b/.config/doom/config.org @@ -472,29 +472,6 @@ Emojify is an Emacs extension to display emojis. It can display github style emo :hook (after-init . global-emojify-mode)) #+end_src -<<<<<<< HEAD - -* ERC - -#+begin_src emacs-lisp - -(setq erc-prompt (lambda () (concat "[" (buffer-name) "]")) - erc-server "irc.libera.chat" - ;; erc-autojoin-channels-alist '(("irc.libera.chat" "#emacs" "#linux")) - erc-nick "distrotube" - erc-user-full-name "Derek Taylor" - ;; By default, ERC selects the channel buffers when it reconnects. If you’d like it to connect to channels in the background, use this: - erc-auto-query 'bury - erc-fill-column 100 - erc-fill-function 'erc-fill-static - erc-fill-static-center 20) - -#+end_src - -#+RESULTS: -: 20 - -======= * ERC ERC is a built-in Emacs IRC client. @@ -507,7 +484,8 @@ ERC is a built-in Emacs IRC client. (:prefix ("e". "evaluate/ERC/EWW") :desc "Launch ERC with TLS connection" "E" #'erc-tls)) -(setq erc-server "irc.libera.chat" +(setq erc-prompt (lambda () (concat "[" (buffer-name) "]")) + erc-server "irc.libera.chat" erc-nick "distrotube" erc-user-full-name "Derek Taylor" erc-track-shorten-start 24 @@ -520,7 +498,7 @@ ERC is a built-in Emacs IRC client. ) #+end_src ->>>>>>> 53366eb61baa128bdedd2bfc2951c589719065d1 + * EVALUATE ELISP EXPRESSIONS Changing some keybindings from their defaults to better fit with Doom Emacs, and to avoid conflicts with my window managers which sometimes use the control key in their keybindings. By default, Doom Emacs does not use 'SPC e' for anything, so I choose to use the format 'SPC e' plus 'key' for these (I also use 'SPC e' for 'eww' keybindings).