branch: elpa/org-tree-slide commit dff8f1a4a64c8dd0a1fde0b0131e2fe186747134 Author: Takaaki ISHIKAWA <tak...@ieee.org> Commit: Takaaki ISHIKAWA <tak...@ieee.org>
Added a hook for CONTENT viewing mode --- ChangeLog | 4 ++++ README.org | 5 +++-- org-tree-slide.el | 7 +++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index be386fe3d3..07bb640671 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-11-30 Takaaki ISHIKAWA <tak...@ieee.org> + + * org-tree-slide.el: Added a hook for CONTENT viewing mode + 2016-05-14 Takaaki ISHIKAWA <tak...@ieee.org> * org-tree-slide.el: Merged breadcrumbs feature (#23) diff --git a/README.org b/README.org index 46d62df8e9..7b0a153a58 100644 --- a/README.org +++ b/README.org @@ -1,8 +1,8 @@ #+TITLE: README for Org Tree Slide #+AUTHOR: Takaaki Ishikawa #+EMAIL: tak...@ieee.org -#+DATE: 2016-05-14 -#+UPDATE: 15:24:12 +#+DATE: 2017-11-30 +#+UPDATE: 15:33:29 #+STARTUP: content [[http://melpa.org/#/org-tree-slide][http://melpa.org/packages/org-tree-slide-badge.svg]] @@ -235,6 +235,7 @@ see also ChangeLog |---------+------------------+-------------------------------------------------| | Version | Date | Description | |---------+------------------+-------------------------------------------------| +| v2.8.6 | 2017-11-30@15:33 | Added a hook for CONTENT viewing mode | | v2.8.5 | 2016-05-14@14:09 | Added breadcrumbs feature (by Matus) | | v2.8.4 | 2015-08-12@21:35 | 'COMMENT'-subtree will be hidden (by Stefano) | | v2.8.3 | 2015-08-09@01:04 | Added a flag to reveal subtrees to be skipped | diff --git a/org-tree-slide.el b/org-tree-slide.el index 6fb54ccc0e..fa866125d8 100644 --- a/org-tree-slide.el +++ b/org-tree-slide.el @@ -1,9 +1,9 @@ ;;; org-tree-slide.el --- A presentation tool for org-mode ;; -;; Copyright (C) 2011-2016 Takaaki ISHIKAWA +;; Copyright (C) 2011-2017 Takaaki ISHIKAWA ;; ;; Author: Takaaki ISHIKAWA <takaxp at ieee dot org> -;; Version: 2.8.5 +;; Version: 2.8.6 ;; Maintainer: Takaaki ISHIKAWA <takaxp at ieee dot org> ;; Twitter: @takaxp ;; Repository: https://github.com/takaxp/org-tree-slide @@ -223,6 +223,8 @@ "A hook run before moving to the next slide") (defvar org-tree-slide-before-move-previous-hook nil "A hook run before moving to the previous slide") +(defvar org-tree-slide-before-content-view-hook nil + "A hook run before showing the content") ;;;###autoload (define-minor-mode org-tree-slide-mode @@ -298,6 +300,7 @@ Profiles: the slide view mode is active." (interactive) (when (org-tree-slide--active-p) + (run-hooks 'org-tree-slide-before-content-view-hook) (org-tree-slide--hide-slide-header) (org-tree-slide--move-to-the-first-heading) (org-overview)