dot/emacs: Turn on `view-read-only' by default.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 26 Apr 2016 17:50:55 +0000 (18:50 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 26 Apr 2016 17:51:33 +0000 (18:51 +0100)
This is kind of imperfect (notably, if you press `q' then it buries the
buffer, leaves it read-only, and next time you visit the file it comes
up ordinary-read-only), but it's a good start.

dot/emacs

index d783024..1d902a6 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 (setq-default truncate-partial-width-windows nil
              truncate-lines t)
 (setq default-indicate-empty-lines t)
+(setq view-read-only t)
 (setq whitespace-style
       '(trailing space-before-tab space-after-tab empty indentation face))
 (setq woman-use-own-frame nil          ;Keep man pages somewhere sensible