emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/org-present 03b23602d3 26/47: document hide/show of cursor


From: ELPA Syncer
Subject: [nongnu] elpa/org-present 03b23602d3 26/47: document hide/show of cursor
Date: Sat, 8 Jan 2022 13:58:30 -0500 (EST)

branch: elpa/org-present
commit 03b23602d3bdff0b4bc6cef663dd97a15cc3ef50
Author: Richard Lister <ric@burton-2.home>
Commit: Richard Lister <ric@burton-2.home>

    document hide/show of cursor
---
 README.md | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md
index aafea5268f..22bb68da37 100644
--- a/README.md
+++ b/README.md
@@ -18,16 +18,27 @@ Add something like this to your emacs config:
 ```lisp
 (add-to-list 'load-path "~/path/to/org-present")
 (autoload 'org-present "org-present" nil t)
+```
 
-(add-hook 'org-present-mode-hook
-          (lambda ()
-            (org-present-big)
-            (org-display-inline-images)))
+Precise behaviour of org-present during start and quit is controlled
+from hooks. The following will enlarge text, show images, hide the
+cursor and make the buffer read-only:
 
-(add-hook 'org-present-mode-quit-hook
-          (lambda ()
-            (org-present-small)
-            (org-remove-inline-images)))
+```lisp
+(eval-after-load "org-present"
+  '(progn
+     (add-hook 'org-present-mode-hook
+               (lambda ()
+                 (org-present-big)
+                 (org-display-inline-images)
+                 (org-present-hide-cursor)
+                 (org-present-read-only)))
+     (add-hook 'org-present-mode-quit-hook
+               (lambda ()
+                 (org-present-small)
+                 (org-remove-inline-images)
+                 (org-present-show-cursor)
+                 (org-present-read-write)))))
 ```
 
 Then start the minor mode with:



reply via email to

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