|
1 | 1 | ;; These are the slides that will be run during the RubyKaigi
|
2 | 2 |
|
3 |
| -(progn |
4 |
| - "This is a simple explanation for this slide" |
5 |
| - ) |
6 |
| - |
7 | 3 | ;; Window register a
|
8 | 4 | (progn
|
| 5 | + "Initial setup" |
9 | 6 | (menu-bar-mode 1)
|
10 | 7 | (tool-bar-mode -1)
|
11 | 8 | (frame-configuration-to-register ?b) ;; Store original config
|
| 9 | + |
| 10 | + |
12 | 11 | (message "face height is %s" (face-attribute 'default :height))
|
13 | 12 | (set-face-attribute 'default nil :height 200)
|
14 | 13 | (message "Mac set to full screen frame config \n %s" (current-frame-configuration))
|
|
24 | 23 | ;; (height . 47)
|
25 | 24 | ;; ) 'nodelete)
|
26 | 25 |
|
27 |
| - ;; (find-file (concat democamp/presentation-dir "presentation-1.txt")) |
28 |
| - ;; (democamp/say "RubyKaigi M-x ruby-and-emacs-workshop") |
29 | 26 | (frame-configuration-to-register ?a))
|
30 | 27 |
|
31 | 28 | ;; Frame configuration b
|
|
88 | 85 | (yari))
|
89 | 86 |
|
90 | 87 |
|
| 88 | +(progn |
| 89 | + "inf ruby mode" |
| 90 | + (dcse 'inf-ruby) |
| 91 | + (democamp/load-code "sample.rb") |
| 92 | + (delete-other-windows) |
| 93 | + (beginning-of-buffer) |
| 94 | + (sit-for 1) |
| 95 | + (search-forward "sum") |
| 96 | + (sit-for 1) |
| 97 | + (ruby-send-definition) |
| 98 | + (split-window-vertically) |
| 99 | + (switch-to-buffer "*ruby*") |
| 100 | + |
| 101 | + |
| 102 | + (switch-to-buffer "sample.rb") |
| 103 | + (end-of-buffer) |
| 104 | + (insert "\n\nHoge.new.sum([5])") |
| 105 | + ;; (move-beginning-of-line) |
| 106 | + ;; (set-mark-command) |
| 107 | + ;; (move-end-of-line) |
| 108 | + (ruby-send-region-and-go) |
| 109 | + ) |
| 110 | + |
91 | 111 | ;; after an epresent-mode the screen is wonky revert to frame config
|
92 | 112 | (progn
|
93 | 113 | ;; jumping back does not seem to work (super slow genie effect)
|
|
160 | 180 | ;; log and blame are strong here also integrats with vc tools so
|
161 | 181 | )
|
162 | 182 |
|
| 183 | +;; Showing grep |
| 184 | +(progn |
| 185 | + "Show off occur" |
| 186 | + (democamp/load-code "cgi.rb") |
| 187 | + (completing-read "enter to run occur." '()) |
| 188 | + (dcse 'occur 5 "post") |
| 189 | + ) |
| 190 | + |
| 191 | +(progn |
| 192 | + "grep" |
| 193 | + (rgrep "ruby") |
| 194 | + ) |
| 195 | + |
| 196 | +(progn |
| 197 | + "Tags" |
| 198 | + ;; Need to update etags for ruby and recursive directory search |
| 199 | + ) |
| 200 | + |
| 201 | + |
163 | 202 | ;; More advanced features
|
164 | 203 |
|
165 | 204 | ;; (progn
|
|
169 | 208 | ;; (setq emacspeak-flyspell-highlight-personality nil)
|
170 | 209 | ;; (flyspell-mode 1))
|
171 | 210 |
|
172 |
| -;; (progn |
173 |
| -;; (democamp/say "even Snake") |
174 |
| -;; (delete-other-windows) |
175 |
| -;; (snake)) |
176 |
| - |
177 |
| - |
178 |
| -(democamp/say "Now the wild stuff starts.") |
179 |
| -(democamp/say "This should prove skip works.") |
| 211 | +(progn |
| 212 | + "show and tell" |
| 213 | + (set-face-attribute 'default nil :height 200) |
| 214 | + (delete-other-windows) |
| 215 | + (sit-for 1) |
| 216 | + (animate-sequence (list "Show" "and" "Tell") 1)) |
180 | 217 |
|
181 |
| -(democamp/say "Show and Tell time!") |
|
0 commit comments