summaryrefslogtreecommitdiff
path: root/modules/erc-config.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/erc-config.el')
-rw-r--r--modules/erc-config.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/erc-config.el b/modules/erc-config.el
index ddc8f737..a5284565 100644
--- a/modules/erc-config.el
+++ b/modules/erc-config.el
@@ -91,6 +91,18 @@
:config
(add-to-list 'erc-modules 'hl-nicks))
+;; ------------------------------ ERC Yank To Gist -----------------------------
+;; automatically create a Gist if pasting more than 5 lines
+;; this module requires https://github.com/defunkt/gist
+;; via ruby: 'gem install gist' via the aur: yay -S gist
+
+(use-package erc-yank
+ :defer 1
+ :after erc
+ :bind
+ (:map erc-mode-map
+ ("C-y" . erc-yank)))
+
;; -------------------------------- Connect IRC --------------------------------
;; convenience function to auto-connect to irc.libera.chat