Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6920623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:10:17+00:00 2026-05-27T10:10:17+00:00

There are lots of places in UNIX where programs call out to the program

  • 0

There are lots of places in UNIX where programs call out to the program in $PAGER (usually less or some similar command) to display some output. It’s certainly true that many of the most common uses have an Emacs replacement (in the case of man, for example), but I’d still like a general way to use Emacs as my system-wide pager. Ideally this would mean that calls to PAGER end up in an Emacs temporary buffer similar to *Help*, a read-only buffer you can navigate around and dismiss by pressing “q”.

I usually run a shell through M-x shell, so my envisioned use case is that typing a command like “man foo” in the *shell* window will bring up the man page in another window, more or less exactly like how the built-in *Help* system works.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:10:17+00:00Added an answer on May 27, 2026 at 10:10 am

    For general use of $PAGER, you might be interested in e-sink.

    For the specific case of man pages, it’s better to use Emacs’s built-in man mode as you note. I have this in my .bashrc:

    man () 
    { 
        if [ "$TERM" == "eterm-color" ]; then
            emacsclient -e "(man \"$1\")";
        else
            command man "$@";
        fi
    }
    

    Since you use shell-mode rather than ansi-term-mode like I do you will either have to make this use emacsclient all the time, or do something like (setenv "WITHIN_EMACS" "1") in your .emacs file so you can switch on $WITHIN_EMACS instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There's lots of good material on Design Patterns out there that covers how you
There are lots of Fluent implementations out there now that work with Lambdas to
there are lots of questions out there related to shared preferences and the alternatives.
I know there are lots of similar questions floating around, but none of the
There's lots of questions on SO related to this, but the ones I scanned
There are lots of implementations for validating Luhn checksums but very few for generating
There are lots of java apps on my simulator menu screen which I have
There are lots of tutorials/instructions on how to embed python in an application, but
There are lots written about the ReaderWriterLockSlim class which allows multiple read and a
There are lots of questions on how to strip html tags, but not many

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.