Fork me on GitHub
#emacs
<
2016-08-27
>
hlolli11:08:14

Is there any way that emacs can auto escape when yanking a string, so that all " become \" ?

jethroksy11:08:39

@hlolli: in what scenario would you like strings to autoescape?

jethroksy11:08:59

There's string-edit

hlolli11:08:16

no probably not, maybe select range and do M-x some-fn

jethroksy11:08:20

But it doesn't do it unless you're in string-edit

jethroksy11:08:44

I think Emacs has an escaping function

hlolli11:08:59

ah ok, that would work, hope theres something else available. Ok.

jethroksy11:08:05

So the select range thing should work already

hlolli11:08:27

I have org-escape-code-in-region, didnt do the trick. Well, I manually escape it this time with regex-replace 🙂