summaryrefslogtreecommitdiff
path: root/lisp/init-view.el
blob: e76cefa52c6b0f9cf31a6271a1752c973ffe0727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(key-chord-define-global ",v" 'view-mode)

(setq view-read-only t)

(after 'view
  (define-key view-mode-map "l" 'recenter-top-bottom)
  (define-key view-mode-map "a" 'ace-jump-mode)
  (define-key view-mode-map "f" 'forward-word)
  (define-key view-mode-map "b" 'backward-word)
  (define-key view-mode-map "]" 'forward-paragraph)
  (define-key view-mode-map "[" 'backward-paragraph)
  (define-key view-mode-map "j" 'imenu))

(provide 'init-view)