diff options
Diffstat (limited to 'tw/home/files/lesskey')
-rw-r--r-- | tw/home/files/lesskey | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tw/home/files/lesskey b/tw/home/files/lesskey new file mode 100644 index 00000000..8793a77c --- /dev/null +++ b/tw/home/files/lesskey @@ -0,0 +1,33 @@ +# -*- mode: conf-space -*- +# No compilation is necessary any more in recent less versions. + +#command +{ prev-file +} next-file +N reverse-search +n repeat-search +^h back-screen + +#env +LESS=--ignore-case --quit-if-one-screen --save-marks --no-histdups --RAW-CONTROL-CHARS --LONG-PROMPT --chop-long-lines +LESSOPEN=|src-hilite-lesspipe.sh %s +LESSHISTFILE=$XDG_DATA_HOME/less/history +LESSHISTSIZE=10000 +# *? setting is shared between LESS{,UTF}BINFMT, with the latter's setting taking priority +LESSBINFMT=*k%02X +LESSUTFBINFMT=U+%04lX +# Use pretty colours for bold/underline/... -- mostly in `man' +# https://wiki.archlinux.org/index.php/Color_output_in_console#less +# Note: these values are verbatim as less doesn't support escaping +# characters in lesskey (I think). +# blink -> italic white-on-red +LESS_TERMCAP_mb=[03;37;41m +# bold -> bold blue +LESS_TERMCAP_md=[01;34m +LESS_TERMCAP_me=[00m +# reverse video -> reverse, bright yellow background +LESS_TERMCAP_so=[07;01;33m +LESS_TERMCAP_se=[00m +# underline -> italic green +LESS_TERMCAP_us=[03;32m +LESS_TERMCAP_ue=[00m |