summaryrefslogtreecommitdiff
path: root/lisp/init-view.el
blob: 9a4536c5331f8fb5f122cfd740079b2b25073257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(setq view-read-only t)

(after 'view
  (define-key view-mode-map "l" 'recenter-top-bottom)
  (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" 'avy-goto-subword-1))

(key-chord-define-global "hq" 'view-mode)

(provide 'init-view)