about summary refs log tree commit diff stats
path: root/hm/soispha/conf/less/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/less/default.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/hm/soispha/conf/less/default.nix b/hm/soispha/conf/less/default.nix
index e5506fcd..c9109dd8 100644
--- a/hm/soispha/conf/less/default.nix
+++ b/hm/soispha/conf/less/default.nix
@@ -5,11 +5,14 @@
   };
   programs.less = {
     enable = true;
-    keys = ''
-      t   forw-line
-      n   back-line
-      l   repeat-search
-      L   reverse-search
-    '';
+    keys =
+      builtins.readFile ./command.less
+      + builtins.readFile
+      ./line-edit.less
+      + builtins.readFile ./env.less
+      # This next line *must* be under `./env.less` as it adds to the definitions
+      + ''
+        LESSHISTFILE = ${config.xdg.dataHome}/less/history
+      '';
   };
 }