Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Helix and Emacs have that built in by the way


> Emacs have that built in by the way

Org mode is stellar at that "code in document" tangling, but I'll be honest that I loathe the M-| behavior in emacs since, unlike its vim friend, it puts the output in a separate buffer, placing the burden upon me to copy/cut it back into the source buffer


You can add a prefix arg to replace the region with the result. (Any numeric prefix works, so I usually do M-0 M-| since that's easy to type with the meta key held down, and 0 and | are close together.)


Just add a prefix arg to replace the region you run it on: C-u M-|




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: