Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Define vi movement bindings for Man mode and remap original 'k' to 'K'.

  • Loading branch information...
commit 2ea4c391f6dbddcfe010ac2eceb4666fd1362966 1 parent 8bbcb92
@winfred-lu authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 winfred-evil.el
View
7 winfred-evil.el
@@ -5,6 +5,7 @@
(evil-set-initial-state 'calendar-mode 'emacs)
(evil-set-initial-state 'Custom-mode 'normal)
(evil-set-initial-state 'grep-mode 'emacs)
+(evil-set-initial-state 'hexl-mode 'emacs)
(evil-set-initial-state 'Info-mode 'emacs)
(evil-set-initial-state 'Man-mode 'emacs)
(evil-set-initial-state 'cscope-list-entry-mode 'emacs)
@@ -164,8 +165,14 @@
'(progn
(wf-define-evil-movements magit-status-mode-map)
(wf-define-evil-movements magit-commit-mode-map)
+ (wf-define-evil-movements magit-log-mode-map)
(evil-define-key 'emacs magit-status-mode-map "K" 'magit-discard-item)))
+(eval-after-load "Man"
+ '(progn
+ (wf-define-evil-movements Man-mode-map)
+ (evil-define-key 'emacs Man-mode-map "K" 'Man-kill)))
+
;; key bindings for org-mode
(eval-after-load "org"
'(progn
Please sign in to comment.
Something went wrong with that request. Please try again.