aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-20 23:57:01 -0400
committerCraig Jennings <c@cjennings.net>2026-06-20 23:57:01 -0400
commitc6ab34740e03731ef6153fde39f536ac628159e3 (patch)
treedbb5240a2010ba2b551578e9cafcb5701185eab7 /modules
parent11e0a4b65e1e3f8a1365fa7246dfbcfb60207a61 (diff)
downloaddotemacs-c6ab34740e03731ef6153fde39f536ac628159e3.tar.gz
dotemacs-c6ab34740e03731ef6153fde39f536ac628159e3.zip
fix(erc): drop erc-yank, restore plain C-y in ERC buffers
erc-yank turned a paste over 5 lines in an ERC buffer into a public gist: it called gist -P (the clipboard paste flag) with no --private, behind only a single y-or-n-p and with no guard if the gist binary was missing. One reflexive keystroke published whatever sat on the system clipboard. It also gisted the clipboard rather than the kill-ring text being yanked. I dropped the package. erc-mode-map binds no C-y of its own, so C-y now falls through to the ordinary global yank and a paste stays local. Gist a large snippet by hand when that's actually wanted.
Diffstat (limited to 'modules')
-rw-r--r--modules/erc-config.el19
1 files changed, 9 insertions, 10 deletions
diff --git a/modules/erc-config.el b/modules/erc-config.el
index c0fa9c325..c89e46bb3 100644
--- a/modules/erc-config.el
+++ b/modules/erc-config.el
@@ -338,16 +338,15 @@ NICK is the sender and MESSAGE is the message text."
:after erc
:hook (erc-mode . erc-nicks-mode))
-;; ------------------------------ 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
- :after erc
- :bind
- (:map erc-mode-map
- ("C-y" . erc-yank)))
+;; -------------------------------- ERC Yank ----------------------------------
+;; The erc-yank package was dropped 2026-06-20: a paste over 5 lines became a
+;; PUBLIC gist (it called `gist -P', the clipboard paste flag, with no
+;; `--private'), behind only a single y-or-n-p and with no guard if the `gist'
+;; binary was absent -- a one-keystroke path to publishing whatever sat on the
+;; system clipboard. No replacement binding is needed: erc-mode-map defines no
+;; C-y of its own, so with erc-yank gone C-y falls through to the ordinary
+;; global `yank' and a paste stays local. Gist a large snippet by hand when
+;; that's actually wanted.
(provide 'erc-config)
;;; erc-config.el ends here