-
Notifications
You must be signed in to change notification settings - Fork 0
/
vanilla.el.demo
56 lines (45 loc) · 1.26 KB
/
vanilla.el.demo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
(dired ".")
(package-demo-define-demo my-package-demo-demo
(M-x butterfly :speed 10 :callback ((typewriter "yes")(kbd "RET")))
(pause 1)
(kbd "RET"))
(my-package-demo-demo)
(package-demo-define-demo vanilla-demo
(typewriter "Welcome to Emacs")
(kbd "RET")
(typewriter "================")
(pause 1)
(kbd "RET"))
(defun lunaryorn-new-buffer-frame ()
"Create a new frame with a new empty buffer."
(interactive)
(let ((buffer (generate-new-buffer "untitled")))
(set-buffer-major-mode buffer)
(display-buffer buffer '(display-buffer-pop-up-frame . nil))
buffer))
(with-current-buffer (lunaryorn-new-buffer-frame)
(rename-buffer "vanilla-demo")
(vanilla-demo))
; (package-demo-define-demo demo-magit-commit
; (M-x magit-status
; :callback
; ((pause 1)
; (kbd "c")
; (pause 1)
; (kbd "c")
; (pause 1 :callback
; ((typewriter "Initial commit")
; (kbd "C-c C-c"))))))
; (package-demo-do
; 'M-x
; 'magit-status
; :callback
; '((pause 1)
; (kbd "c")
; (pause 1)
; (kbd "c")
; (pause 1 :callback
; ((typewriter "Initial commit")
; (pause 1 :callback ((kbd "C-c C-c")))))))
(package-demo-do 'pause 1)
;;; syntax like this would be nice: