7

Both more and less seem to be heavily influenced by the vi commands. Are there any pagers that are more emacs like out of the box?

apgwoz
  • 173

3 Answers3

5

less supports actually a subset of both vi and emacs commands. You should be able to add the ones you are missing using the lesskey command.

jlliagre
  • 14,369
1

Not exactly a pager, but GNU Info uses the same bindings as Emacs.

Though I wonder why you would need a pager if you use Emacs…

Emacs can browse man pages with woman, you can « tail » a file with auto-revert-tail-mode.

Daimrod
  • 603
0

I use this bash function to view files (from memory):

ev() {
  emacs "$1" -nw --eval '(setq buffer-read-only t)'
}

It opens the file $1 in a read only buffer.
I don't know the best way to set a bash function as a pager, I suppose you could put it in a shellscript instead and use that as pager instead.

(Not on a computer with bash to test on)

Nifle
  • 34,998