View-mode for read only buffers
This commit is contained in:
@@ -85,6 +85,14 @@
|
||||
(setq ns-right-alternate-modifier 'none)
|
||||
(setq ns-right-command-modifier 'meta)
|
||||
|
||||
;; Read-only buffers activate view mode, toggle read only with C-x C-q
|
||||
(use-package view
|
||||
:init
|
||||
(setq view-read-only t)
|
||||
:bind (:map view-mode-map
|
||||
("v" . View-scroll-half-page-forward)
|
||||
("V" . View-scroll-half-page-backward)))
|
||||
|
||||
|
||||
(use-package direnv
|
||||
:ensure t
|
||||
|
||||
Reference in New Issue
Block a user