Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for a way to use emacs as my pager command in the shell (for example with man or to scroll the output of an asynchronous command with a large amount of output). I use emacsclient as my $EDITOR, but emacsclient cannot use stdin as its input file. Is there an emacs extension that does this, or failing that, a pager that uses most of the emacs buffer motion and search commands?

I know that I could just be using M-x term or M-x ansi-term and set my $PAGER variable to 'cat', but I am hoping there is something that will integrate with my current habit of using emacs and xterm separately.

share|improve this question
I've been looking for a solution for you, but I fear there is no way to read STDIN. Seems like quite a limitation.... – Joe Casadonte Feb 3 '10 at 1:02
this is technically a dupe of the following question -… – Darren Hall Feb 22 '10 at 19:19

less supports most of the emacs buffer motion key bindings but not the search bindings out of the box. You may be able to use lesskey to customize the key binding to match emacs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.