Doesn’t adding the advice in the text-mode-hook mean that after the first time you open a text-mode buffer the advice affects yanking in every single buffer whether or not it is in text-mode?
– Omar 2018-07-02 19:02 UTC
Wow, good catch! How embarassing. Thank you so much for pointing that out!
– Marcin Borkowski 2018-07-04 17:39 UTC