Automatically 'view' read-only buffers, and 'read' view buffers

This commit is contained in:
Case Duckworth 2021-04-28 15:48:37 -05:00
parent 7514b598cf
commit e885e267ce
1 changed files with 5 additions and 1 deletions

View File

@ -228,7 +228,8 @@
w32-pass-apps-to-system nil
w32-apps-modifier 'hyper
visible-bell nil
ring-bell-function #'flash-mode-line)
ring-bell-function #'flash-mode-line
view-read-only t)
(defun flash-mode-line ()
"Flash the modeline as a bell."
@ -243,6 +244,9 @@
(tooltip-mode -1)
(winner-mode +1)
(add-hook 'view-mode-hook (defun acdw/read-view-mode ()
(acdw/reading-mode (if view-mode +1 -1))))
;;; Bindings
(:global "M-SPC" cycle-spacing
"M-/" hippie-expand