Pipe less to emacs
Posted
by Steve
on Stack Overflow
See other posts from Stack Overflow
or by Steve
Published on 2010-03-23T15:02:29Z
Indexed on
2010/03/23
15:03 UTC
Read the original article
Hit count: 373
When viewing piped output to Less, sometimes I'd like to be able to view it in Emacs in order to get syntax highlighting and use emacs commands for searching, marking, copying, etc.
I see that Less has a v
command that can be used to open the currently viewed file in $EDITOR
. Unfortunately this doesn't work when viewing piped input.
Also, I don't know how to get Emacs to display stdin as a read-only document.
So, is it possible to set up Less with something like v
but that pumps the current buffer into Emacs as a read-only file?
Thanks.
© Stack Overflow or respective owner