chiark / gitweb /
Keypad-enter hacking for zile and less.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 3 Jan 2013 06:20:07 +0000 (06:20 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 3 Jan 2013 06:20:07 +0000 (06:20 +0000)
dot/lesskey [new file with mode: 0644]
dot/zile
setup

diff --git a/dot/lesskey b/dot/lesskey
new file mode 100644 (file)
index 0000000..fb77d61
--- /dev/null
@@ -0,0 +1,8 @@
+### -*-conf-*-
+### `less' key bindings
+
+#command
+\kx            back-screen
+\eOM           forw-line
+
+#line-edit
index 97c90d93b15718120bce897a997db54c87673749..cf2d8c7ff1d27fce97eb385f7d351b91f32dbe89 100644 (file)
--- a/dot/zile
+++ b/dot/zile
@@ -9,5 +9,6 @@
 ;; Key bindings.
 (global-set-key "\M-\LEFT" 'backward-word)
 (global-set-key "\M-\RIGHT" 'forward-word)
+(global-set-key "\M-OM" 'newline)
 (global-set-key "\F4" 'call-last-kbd-macro)
 (global-set-key "\C-x/" 'auto-fill-mode)
diff --git a/setup b/setup
index 82898ef137ef73eeafd598b92589e0dc640122c1..d1393df6d5b2380ae3bc9bb2e52095a2416970e0 100755 (executable)
--- a/setup
+++ b/setup
@@ -133,7 +133,7 @@ fi
 dotfiles="
   bash_profile bash_logout bashrc inputrc bash_completion
   emacs emacs-calc vm gnus.el ercrc.el
-  vimrc mg zile
+  vimrc mg zile lesskey
   ditz-config
   mailrc signature
   cgrc tigrc