]> git.eshelyaron.com Git - emacs.git/commitdiff
use view-mode on score file for ease of scrolling and quitting
authorSam Steingold <sds@gnu.org>
Thu, 2 May 2019 14:17:56 +0000 (10:17 -0400)
committerSam Steingold <sds@gnu.org>
Thu, 2 May 2019 14:18:14 +0000 (10:18 -0400)
lisp/play/gamegrid.el

index 4a9dac7f7486023cfff28cb47a41770a70616bd1..54eeafd2b537fbf69e0aaa9296d912201b224515 100644 (file)
@@ -663,6 +663,7 @@ FILE is created there."
              (revert-buffer nil t nil)
              (display-buffer buf))
          (find-file-read-only target))
+        (view-mode)
         (goto-char (point-min))
         (search-forward (concat (int-to-string score)
                                " " (user-login-name) " "
@@ -691,7 +692,8 @@ FILE is created there."
     (forward-line gamegrid-score-file-length)
     (delete-region (point) (point-max))
     (setq buffer-read-only t)
-    (save-buffer)))
+    (save-buffer)
+    (view-mode)))
 
 
 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;