Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add org-tree-slide-exit-at-next-last-slide and -before-hook #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hidsh
Copy link

@hidsh hidsh commented Dec 12, 2020

Hi !

This package is marvelous!
However I'd like to exit the slideshow at arriving to last slide. Then my trivial ideal will be realized perfectly like below if org-tree-mode-exit-hook is added to this package.

https://vimeo.com/490095476

(defun enter-the-prezn ()
  (setq org-tree-slide-exit-at-next-last-slide t)
(add-hook 'org-tree-slide-play-hook #'enter-the-prezn)

(defun sayonara ()
  (lexical-let ((animate-n-steps 60)
                (vpos 10))
    (animate-string "Thank you for watching!" vpos))
  (sit-for 3))
(add-hook 'org-tree-slide-before-exit-hook #'sayonara)

すみません。英語しんどくなってきたので日本語使わせてください ^_^;

プレゼンが最後まで行ったらそのままC->を押して抜けるようにしたかったのと、抜けるとき用のフックが欲しかったので足してみました。

変なところに足しててすみません。(org-tree-slide-stop-hookでやろうとしたのですが、「中断」的なとき用の感じがしたので新たに足してみました。)

設計思想と違う場合はお知らせください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant