Wed, Feb 8, 2023
TIL; C-u M-|
You can pipe selected text in Emacs to the command line. For example if you want to sort lines, select lines you want to sort and type C-u M-| sort RET
. Or you want to pretty-format XML file. Select whole file and C-u M-| xmllint --format - RET
Next - Previous