I can't believe I'm saying this, but one thing that is "nice" about windows cmd is the pager. When I do man grep
in a bash shell inside emacs buffer it spits out the entire content at once. Is there a way/mode to have emacs buffer to halt outputting text and ask if I want to see more.
Running GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30
on "ON NOOO! But can't run anything else" --> Windows 10.
here is what I have for running a bash shell buffer.
;;git bash
(defun git-bash () (interactive)
(let ((explicit-shell-file-name "d:/Installed_progs/Git/bin/bash.exe"))
(call-interactively 'shell)
(setq explicit-bash.exe-args '("--noediting" "--login" "-i"))))
To make it more concrete, here is what I see if I run man grep
The command output filled the entire screen and keeps going until the end of the text.
Here is what I see when I run the same command in win cmd
Pages shows only what fits in one screen and waits. Is there any way to have that type of behavior in a bash shell in emacs?
man grep
. Can you please explain how you are running a shell in Emacs, and also what version of Emacs and which OS you have? Otherwise this question doesn't make sense.M-x man grep <return>. It's only one more keystroke (you need to type
M-x` at the beginning), but it gives you something much nicer than a simple pager. At least, I thinkM-x man
works on Windows?