[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
- [Emacs-diffs] branch feature/new-tutorial created (now 7812f5e), Phillip Lord, 2017/05/18
- [Emacs-diffs] feature/new-tutorial a780687 02/10: Move tutorial.org to correct location, Phillip Lord, 2017/05/18
- [Emacs-diffs] feature/new-tutorial 7812f5e 10/10: Add images, Phillip Lord, 2017/05/18
- [Emacs-diffs] feature/new-tutorial 1a25246 03/10: Support saving org-mode tutorial, Phillip Lord, 2017/05/18
- [Emacs-diffs] feature/new-tutorial 2367af9 06/10: First org-mode tutorial, Phillip Lord, 2017/05/18
- [Emacs-diffs] feature/new-tutorial 2a7e4ee 07/10: Make tutorial read-only,
Phillip Lord <=
- [Emacs-diffs] feature/new-tutorial 353fc5f 09/10: Update branch notes, Phillip Lord, 2017/05/18
- [Emacs-diffs] feature/new-tutorial d37b299 05/10: Add tutorial-org, refactor tutorial, and lots of supporting changes., Phillip Lord, 2017/05/18
- [Emacs-diffs] feature/new-tutorial 1979beb 01/10: Commit, Phillip Lord, 2017/05/18
- [Emacs-diffs] feature/new-tutorial 4a9a824 08/10: Refill tutorial, Phillip Lord, 2017/05/18
- [Emacs-diffs] feature/new-tutorial 1f5d3b7 04/10: Add test framework, Phillip Lord, 2017/05/18