I followed https://unix.stackexchange.com/a/43460/674: after
$ locate -i linux | less
I type g|$emacs -
in less
, but nothing is opened in Emacs, and the terminals says:
emacs: standard input is not a tty
What does that mean?
g|$emacs -nw -
doesn't work either. Btw, I want to use emacs in terminal not its GUI.
what shall I do then?
g
instead of aq
before that pipe?less
and then open it in emacs. It doesn't look like that is what you are trying here, so which method are you attempting to use?vim
in a similar way and it works! ;)vim
beatsemacs
on that topic : if this is right,emacs
can't read from stdin.