You're raising two separate issues.
Keeping asterisks visible
org-present
calls org-present-add-overlays
, which is responsible for making the leading asterisks invisible. Here is a modified version of org-present-add-overlays
that you can add to your init-file to make sure asterisks stay visible:
(defun org-present-add-overlays ()
"Add overlays for this mode."
(add-to-invisibility-spec '(org-present))
(save-excursion
;; hide org-mode options starting with #+
(goto-char (point-min))
(while (re-search-forward "^[[:space:]]*\\(#\\+\\)\\([^[:space:]]+\\).*" nil t)
(let ((end (if (org-present-show-option (match-string 2)) 2 0)))
(org-present-add-overlay (match-beginning 1) (match-end end))))
;; hide emphasis markers
(let ((org-emph-re "\\([ \t('\"{]\\|^\\)\\(\\([/_=~+]\\)\\([^ \t\r\n,\"']\\|[^ \t\r\n,\"'].*?\\(?:\n.*?\\)\\{0,1\\}[^ \t\r\n,\"']\\)\\3\\)\\([- \t.,:!?;'\")}\\]\\|$\\)"))
(while (re-search-forward org-emph-re nil t)
(org-present-add-overlay (match-beginning 2) (1+ (match-beginning 2)))
(org-present-add-overlay (1- (match-end 2)) (match-end 2))))))
org-present
won't toggle org-present-mode
As described here, there is a separate command for ending a presentation and going back to "vanilla" org-mode
. It is called org-present-quit
; the default binding for it is C-c C-q
, so just hit that if you want to get out of org-present-mode
.
Alternatively, if you want to be able to use the org-present
command as a toggle, you can advise it as follows:
(defun org-present-toggle (orig)
(if (not org-present-mode)
(funcall orig)
(org-present-quit)))
(advice-add 'org-present :around #'org-present-toggle)
org-present
mode? – Nathanael Farley Feb 27 '15 at 11:39org-present
can split them into different slides, 1 slide for main line, 1 slide each for sub-topics from level 2. once i enable this mode, key presses are behaving strangely and i couldn't figure out how to even add an extra slide... – Madhavan Feb 27 '15 at 11:57org-mode
will be able to recognize and fontify your headlines properly. – itsjeyd Feb 27 '15 at 12:15