aboutsummaryrefslogtreecommitdiff
path: root/tw/home/files/lesskey
diff options
context:
space:
mode:
Diffstat (limited to 'tw/home/files/lesskey')
-rw-r--r--tw/home/files/lesskey33
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=
+# bold -> bold blue
+LESS_TERMCAP_md=
+LESS_TERMCAP_me=
+# reverse video -> reverse, bright yellow background
+LESS_TERMCAP_so=
+LESS_TERMCAP_se=
+# underline -> italic green
+LESS_TERMCAP_us=
+LESS_TERMCAP_ue=