changeset 54:6673ad9084d4

Add vi-like bindings for info
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Mon, 02 Apr 2012 11:57:28 -0400
parents e57a4e6cb19e
children ef640c568ff3
files dotemacs.el
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dotemacs.el
+++ b/dotemacs.el
@@ -254,6 +254,16 @@
 ;; What it says on the tin
 (add-hook 'mail-mode-hook 'turn-on-auto-fill)
 
+;; Some info vi-like keybindings
+(add-hook 'Info-mode-hook
+          (lambda ()
+            (local-unset-key (kbd "l"))
+            (local-set-key (kbd ";") 'Info-history-back)
+            (local-set-key (kbd "h") 'backward-char)
+            (local-set-key (kbd "l") 'forward-char)
+            (local-set-key (kbd "j") 'next-line)
+            (local-set-key (kbd "k") 'previous-line)))
+
 ;; Something seems to clobber whitespace-mode, this should fix it
 (whitespace-toggle-options 'whitespace-style)