At the end of each sprint, each of us demonstrate accomplishments. These reviews often incorporate the following trifecta:
During my sprint reviews, I noticed I used my org-mode-formatted files, eshell and source code buffers... always in Emacs. However, fat-fingering or mentally burping delayed the gratification for my audience while I laboriously typed. I solved this problem by predefining each "step" as an Emacs Lisp function, and had another function execute each /step function/ when I hit an /advance/ key (=F12=).
After I had amassed a small army of /helper functions/, I packaged it as =demo-it=, because I lack the imagination to come up with anything more clever.
See the following videos as examples of what can be done:
Click the following image for a quicker example:
Using this project is a four step process:
Press space for each step, or call =demo-it-end= to end earlier.
For instance:
(require 'demo-it) ;; Load this library of functions
(defun my-demo-step/show-code () "Helper demo function that displays some source code and advances the presentation at one time." (demo-it-load-file "example/example.py" :right) (demo-it-presentation-advance))
;; Order the functions and forms for this presentation: (demo-it-create (demo-it-presentation "example/example.org") my-demo-step/show-code demo-it-presentation-return ; close file and advance (demo-it-run-in-eshell "python example/example.py"))
(demo-it-start)
Each "step" given to =demo-it-create= can be one of the following:
This package has a collection of helping functions, that can either be called directly as part of an expression, or embedded in a demonstration /step function/. For a more complete example, see [[file:example/example.el][example.el]] or the other examples in the [[file:example][example directory]].
Finally, read the [[file:demo-it.org][documentation]] (which is available as an Info manual).
Historical Record
The initial release, while published on MELPA, was rather an ad hoc collection of functions, poorly organized and barely documented. Sorry about that. I really didn't think any one would care enough to use it.
Version 2 of this project attempted to remedy those shortcomings, cleaning and standardizing the /interface/ of functions. Also included is the following features:
Simplification of a demonstration's construction. Originally each step essentially required a helper function, but now, we can specify full expressions directly into =demo-it-create=.
Default behavior is now based on customized preferences instead of hard-coded values. Functions still accept optional values to override those defaults. Also the =demo-it-create= macro accepts demo-level overrides of the customized preferences.
Described every function [[file:demo-it.org][both online]] and as an Info manual, with lots of examples for the step functions.
Version 3 is a plan to have each step more repeatable. Currently, each step assumes a state built by the previous steps, which makes developing, debugging, and reversing difficult.