emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] feature/new-tutorial 2a7e4ee 07/10: Make tutorial read-onl


From: Phillip Lord
Subject: [Emacs-diffs] feature/new-tutorial 2a7e4ee 07/10: Make tutorial read-only
Date: Thu, 18 May 2017 05:18:53 -0400 (EDT)

branch: feature/new-tutorial
commit 2a7e4ee2ad43b294c768aaf53f3a02513c8e0242
Author: Phillip Lord <address@hidden>
Commit: Phillip Lord <address@hidden>

    Make tutorial read-only
---
 etc/tutorials-org/tutorial.org | 5 -----
 lisp/tutorial-org.el           | 3 ++-
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/etc/tutorials-org/tutorial.org b/etc/tutorials-org/tutorial.org
index 7253373..b179f45 100644
--- a/etc/tutorials-org/tutorial.org
+++ b/etc/tutorials-org/tutorial.org
@@ -184,11 +184,6 @@ In this section, we consider how Emacs allows you to view 
and to change text
 within Emacs. This is mostly straight-forward, but Emacs gives you a some
 extra options useful for changing text rapidly.
 
-** This is a copy!
-
-If you wish to practice on this tutorial, do not worry, you can change it
-freely as it is just a copy.
-
 ** Editing Text
 
 Changing text happens in Emacs as with most other applications. A blinking
diff --git a/lisp/tutorial-org.el b/lisp/tutorial-org.el
index e74e7f5..bca3e34 100644
--- a/lisp/tutorial-org.el
+++ b/lisp/tutorial-org.el
@@ -31,7 +31,8 @@
 (define-derived-mode tutorial-org-mode org-mode "Tutor"
   "A mode for displaying tutorials."
   (show-all)
-  (setq-local org-hide-emphasis-markers t))
+  (setq-local org-hide-emphasis-markers t)
+  (setq buffer-read-only t))
 
 (defun tutorial-org--display-buffer (tutorial-buffer-name)
   (when-let ((tutorial-buffer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]