Skip to content

Commit ac380d4

Browse files
author
Zev Blut
committed
Additional notes and examples of inf-mode occur "grep"
1 parent 762013a commit ac380d4

File tree

3 files changed

+53
-17
lines changed

3 files changed

+53
-17
lines changed

presentations/intro.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@
3737
# version 22 preferably 23
3838

3939
** Perhaps setup a small virtual box VM image with Emacs.
40+
# Question for TLUG to answer
4041
# The question is will there be a fast enough method to distribute
4142
# this image and vbox to the members? CDs USB drives?

presentations/presentation-1.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,10 @@ that the cursor is on."
105105

106106

107107
* @Source Control
108-
** VC
108+
** VC with git.el
109109
** Magit
110110
**source control usage of reverting changes.
111111
** making commits
112-
** git.el # same thing as vc- or plugs into it?
113112
** SMerge patches
114113

115114

rubykaigi.el

Lines changed: 51 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
;; These are the slides that will be run during the RubyKaigi
22

3-
(progn
4-
"This is a simple explanation for this slide"
5-
)
6-
73
;; Window register a
84
(progn
5+
"Initial setup"
96
(menu-bar-mode 1)
107
(tool-bar-mode -1)
118
(frame-configuration-to-register ?b) ;; Store original config
9+
10+
1211
(message "face height is %s" (face-attribute 'default :height))
1312
(set-face-attribute 'default nil :height 200)
1413
(message "Mac set to full screen frame config \n %s" (current-frame-configuration))
@@ -24,8 +23,6 @@
2423
;; (height . 47)
2524
;; ) 'nodelete)
2625

27-
;; (find-file (concat democamp/presentation-dir "presentation-1.txt"))
28-
;; (democamp/say "RubyKaigi M-x ruby-and-emacs-workshop")
2926
(frame-configuration-to-register ?a))
3027

3128
;; Frame configuration b
@@ -88,6 +85,29 @@
8885
(yari))
8986

9087

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+
91111
;; after an epresent-mode the screen is wonky revert to frame config
92112
(progn
93113
;; jumping back does not seem to work (super slow genie effect)
@@ -160,6 +180,25 @@
160180
;; log and blame are strong here also integrats with vc tools so
161181
)
162182

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+
163202
;; More advanced features
164203

165204
;; (progn
@@ -169,13 +208,10 @@
169208
;; (setq emacspeak-flyspell-highlight-personality nil)
170209
;; (flyspell-mode 1))
171210

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))
180217

181-
(democamp/say "Show and Tell time!")

0 commit comments

Comments
 (0)