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?
Asked
Active
Viewed 1,398 times
3 Answers
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
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