Skip to content

Commit 8b6f32b

Browse files
committed
update
1 parent 2bce127 commit 8b6f32b

18 files changed

+103
-108
lines changed

index.html

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Emacs Starter Kit</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:40 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:07 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>
@@ -471,7 +471,6 @@ <h3 id="sec-2_1">Starter kit basics </h3>
471471
<pre class="src src-emacs-lisp">(setq package-archives
472472
'((<span class="org-string">"original"</span> . <span class="org-string">"http://tromey.com/elpa/"</span>)
473473
(<span class="org-string">"gnu"</span> . <span class="org-string">"http://elpa.gnu.org/packages/"</span>)
474-
(<span class="org-string">"technomancy"</span> . <span class="org-string">"http://repo.technomancy.us/emacs/"</span>)
475474
(<span class="org-string">"marmalade"</span> . <span class="org-string">"http://marmalade-repo.org/packages/"</span>)))
476475
(package-initialize)
477476

@@ -489,9 +488,7 @@ <h3 id="sec-2_1">Starter kit basics </h3>
489488
(<span class="org-keyword">unless</span> package-archive-contents
490489
(package-refresh-contents))
491490
(<span class="org-keyword">dolist</span> (package starter-kit-packages)
492-
(<span class="org-keyword">unless</span> (or (member package package-activated-list)
493-
(functionp package))
494-
(message <span class="org-string">"Installing %s"</span> (symbol-name package))
491+
(<span class="org-keyword">unless</span> (package-installed-p package)
495492
(package-install package))))
496493

497494
</pre>
@@ -505,7 +502,12 @@ <h3 id="sec-2_1">Starter kit basics </h3>
505502

506503
<pre class="src src-emacs-lisp">(<span class="org-keyword">defun</span> <span class="org-function-name">starter-kit-load</span> (file)
507504
<span class="org-doc">"This function is to be used to load starter-kit-*.org files."</span>
508-
(org-babel-load-file (expand-file-name file starter-kit-dir)))
505+
(org-babel-load-file
506+
(expand-file-name
507+
(<span class="org-keyword">if</span> (string-match <span class="org-string">"starter-kit-.+\.org"</span> file)
508+
file
509+
(format <span class="org-string">"starter-kit-%s.org"</span> file))
510+
starter-kit-dir)))
509511

510512
</pre>
511513

@@ -628,13 +630,14 @@ <h3 id="sec-2_2"><a name="sec-2-2" id="sec-2-2"></a>Starter kit core </h3>
628630
<pre class="src src-emacs-lisp">(<span class="org-keyword">defun</span> <span class="org-function-name">yas/org-very-safe-expand</span> ()
629631
(<span class="org-keyword">let</span> ((yas/fallback-behavior 'return-nil)) (yas/expand)))
630632

631-
(add-hook 'org-mode-hook
632-
(<span class="org-keyword">lambda</span> ()
633-
<span class="org-comment-delimiter">;; </span><span class="org-comment">yasnippet (using the new org-cycle hooks)</span>
634-
(make-variable-buffer-local 'yas/trigger-key)
635-
(setq yas/trigger-key [tab])
636-
(add-to-list 'org-tab-first-hook 'yas/org-very-safe-expand)
637-
(define-key yas/keymap [tab] 'yas/next-field)))
633+
(<span class="org-keyword">defun</span> <span class="org-function-name">yas/org-setup</span> ()
634+
<span class="org-comment-delimiter">;; </span><span class="org-comment">yasnippet (using the new org-cycle hooks)</span>
635+
(make-variable-buffer-local 'yas/trigger-key)
636+
(setq yas/trigger-key [tab])
637+
(add-to-list 'org-tab-first-hook 'yas/org-very-safe-expand)
638+
(define-key yas/keymap [tab] 'yas/next-field))
639+
640+
(add-hook 'org-mode-hook #'yas/org-setup)
638641

639642
</pre>
640643

starter-kit-bindings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit Bindings</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:43 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:10 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>

starter-kit-defuns.html

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit Defuns</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:43 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:10 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>
@@ -108,50 +108,40 @@ <h2 id="sec-1">The starter-kit-coding-hook: </h2>
108108

109109

110110

111-
<pre class="src src-emacs-lisp">(<span class="org-keyword">defun</span> <span class="org-function-name">local-column-number-mode</span> ()
111+
<pre class="src src-emacs-lisp">(<span class="org-keyword">defun</span> <span class="org-function-name">starter-kit-local-column-number-mode</span> ()
112112
(make-local-variable 'column-number-mode)
113113
(column-number-mode t))
114114

115-
(<span class="org-keyword">defun</span> <span class="org-function-name">local-comment-auto-fill</span> ()
115+
(<span class="org-keyword">defun</span> <span class="org-function-name">starter-kit-local-comment-auto-fill</span> ()
116116
(set (make-local-variable 'comment-auto-fill-only-comments) t)
117117
(auto-fill-mode t))
118118

119-
(<span class="org-keyword">defun</span> <span class="org-function-name">turn-on-hl-line-mode</span> ()
120-
(<span class="org-keyword">if</span> window-system (hl-line-mode t)))
121-
122-
(<span class="org-keyword">defun</span> <span class="org-function-name">turn-on-save-place-mode</span> ()
119+
(<span class="org-keyword">defun</span> <span class="org-function-name">starter-kit-turn-on-save-place-mode</span> ()
123120
(setq save-place t))
124121

125-
(<span class="org-keyword">defun</span> <span class="org-function-name">turn-on-whitespace</span> ()
122+
(<span class="org-keyword">defun</span> <span class="org-function-name">starter-kit-turn-on-whitespace</span> ()
126123
(whitespace-mode t))
127124

128125
</pre>
129126

130127

131128

132129

133-
<pre class="src src-emacs-lisp">(add-hook 'starter-kit-coding-hook 'local-column-number-mode)
134-
135-
</pre>
136-
137-
138-
139-
140-
<pre class="src src-emacs-lisp">(add-hook 'starter-kit-coding-hook 'local-comment-auto-fill)
130+
<pre class="src src-emacs-lisp">(add-hook 'starter-kit-coding-hook 'starter-kit-local-column-number-mode)
141131

142132
</pre>
143133

144134

145135

146136

147-
<pre class="src src-emacs-lisp">(add-hook 'starter-kit-coding-hook 'turn-on-hl-line-mode)
137+
<pre class="src src-emacs-lisp">(add-hook 'starter-kit-coding-hook 'starter-kit-local-comment-auto-fill)
148138

149139
</pre>
150140

151141

152142

153143

154-
<pre class="src src-emacs-lisp">(add-hook 'starter-kit-coding-hook 'pretty-lambdas)
144+
<pre class="src src-emacs-lisp">(add-hook 'starter-kit-coding-hook 'starter-kit-pretty-lambdas)
155145

156146
</pre>
157147

starter-kit-eshell.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit Eshell</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:42 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:10 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>

starter-kit-g-client.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit G-Client</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:42 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:10 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>

starter-kit-gnus.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit Gnus</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:42 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:09 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>

starter-kit-haskell.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit Haskell</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:42 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:09 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>

starter-kit-js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit JS</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:42 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:09 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>

starter-kit-lisp.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit Lisp</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:41 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:09 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>

starter-kit-misc-recommended.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit Misc Recommended</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:41 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:08 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>

starter-kit-misc.html

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit Misc</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:41 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:08 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>
@@ -273,7 +273,8 @@ <h3 id="sec-1_7">Other, spell checking, tabs, imenu and a coding hook </h3>
273273
<span class="org-doc">"Hook that gets run on activation of any programming mode."</span>)
274274

275275
(<span class="org-keyword">defalias</span> '<span class="org-function-name">yes-or-no-p</span> 'y-or-n-p)
276-
(random t) <span class="org-comment-delimiter">;; </span><span class="org-comment">Seed the random-number generator</span>
276+
<span class="org-comment-delimiter">;; </span><span class="org-comment">Seed the random-number generator</span>
277+
(random t)
277278

278279
</pre>
279280

@@ -283,14 +284,36 @@ <h3 id="sec-1_7">Other, spell checking, tabs, imenu and a coding hook </h3>
283284
</div>
284285

285286
<div id="outline-container-1_7_1" class="outline-4">
286-
<h4 id="sec-1_7_1">possible issues/resolutions with flyspell </h4>
287+
<h4 id="sec-1_7_1">functions for prettier source code </h4>
287288
<div class="outline-text-4" id="text-1_7_1">
288289

290+
291+
292+
293+
<pre class="src src-emacs-lisp">(<span class="org-keyword">defun</span> <span class="org-function-name">starter-kit-pretty-lambdas</span> ()
294+
(font-lock-add-keywords
295+
nil `((<span class="org-string">"(?</span><span class="org-string"><span class="org-regexp-grouping-backslash">\\</span></span><span class="org-string"><span class="org-regexp-grouping-construct">(</span></span><span class="org-string">lambda\\&gt;</span><span class="org-string"><span class="org-regexp-grouping-backslash">\\</span></span><span class="org-string"><span class="org-regexp-grouping-construct">)</span></span><span class="org-string">"</span>
296+
(0 (<span class="org-keyword">progn</span> (compose-region (match-beginning 1) (match-end 1)
297+
,(make-char 'greek-iso8859-7 107))
298+
nil))))))
299+
300+
</pre>
301+
302+
303+
304+
</div>
305+
306+
</div>
307+
308+
<div id="outline-container-1_7_2" class="outline-4">
309+
<h4 id="sec-1_7_2">possible issues/resolutions with flyspell </h4>
310+
<div class="outline-text-4" id="text-1_7_2">
311+
289312
<p>Most of the solution came from <a href="http://www.emacswiki.org/emacs/FlySpell">EmacsWiki-FlySpell</a>. Here is one
290313
possible fix.
291314
</p>
292315
<ul>
293-
<li id="sec-1-7-1-1">Emacs set path to aspell <br/>
316+
<li id="sec-1-7-2-1">Emacs set path to aspell <br/>
294317
it's possible aspell isn't in your path
295318

296319

@@ -304,7 +327,7 @@ <h4 id="sec-1_7_1">possible issues/resolutions with flyspell </h4>
304327
</li>
305328
</ul>
306329
<ul>
307-
<li id="sec-1-7-1-2">Emacs specify spelling program <br/>
330+
<li id="sec-1-7-2-2">Emacs specify spelling program <br/>
308331
<ul>
309332
<li>This didn't work at first, possibly because cocoAspell was
310333
building its dictionary. Now it seems to work fine.

starter-kit-org.html

Lines changed: 14 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit Org</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:41 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:08 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>
@@ -112,19 +112,9 @@ <h2 id="sec-1">Starter Kit Org </h2>
112112
</div>
113113

114114
<div id="outline-container-1_1" class="outline-3">
115-
<h3 id="sec-1_1">Org-Mode Hook </h3>
115+
<h3 id="sec-1_1">Org-Mode Hook &ndash; Keybindings </h3>
116116
<div class="outline-text-3" id="text-1_1">
117117

118-
<p>The latest version of yasnippets doesn't play well with Org-mode, the
119-
following function allows these two to play nicely together
120-
</p>
121-
122-
123-
<pre class="src src-emacs-lisp">(<span class="org-keyword">defun</span> <span class="org-function-name">yas/org-very-safe-expand</span> ()
124-
(<span class="org-keyword">let</span> ((yas/fallback-behavior 'return-nil)) (yas/expand)))
125-
126-
</pre>
127-
128118

129119

130120

@@ -209,8 +199,15 @@ <h3 id="sec-1_3">Code blocks </h3>
209199

210200

211201

212-
<p>
213-
The following displays the contents of code blocks in Org-mode files
202+
</div>
203+
204+
</div>
205+
206+
<div id="outline-container-1_4" class="outline-3">
207+
<h3 id="sec-1_4">Code block fontification </h3>
208+
<div class="outline-text-3" id="text-1_4">
209+
210+
<p>The following displays the contents of code blocks in Org-mode files
214211
using the major-mode of the code. It also changes the behavior of
215212
<code>TAB</code> to as if it were used in the appropriate major mode. This means
216213
that reading and editing code form inside of your Org-mode files is
@@ -229,9 +226,9 @@ <h3 id="sec-1_3">Code blocks </h3>
229226

230227
</div>
231228

232-
<div id="outline-container-1_4" class="outline-3">
233-
<h3 id="sec-1_4">Load up the Library of Babel </h3>
234-
<div class="outline-text-3" id="text-1_4">
229+
<div id="outline-container-1_5" class="outline-3">
230+
<h3 id="sec-1_5">Load up the Library of Babel </h3>
231+
<div class="outline-text-3" id="text-1_5">
235232

236233
<p>The library of babel contains makes many useful functions available
237234
for use by code blocks in <b>any</b> emacs file. See the actual
@@ -255,35 +252,6 @@ <h3 id="sec-1_4">Load up the Library of Babel </h3>
255252

256253

257254

258-
</div>
259-
260-
</div>
261-
262-
<div id="outline-container-1_5" class="outline-3">
263-
<h3 id="sec-1_5">Ensure the Latest Org-mode manual is in the info directory </h3>
264-
<div class="outline-text-3" id="text-1_5">
265-
266-
<p>By placing the <code>doc/</code> directory in Org-mode at the front of the
267-
<code>Info-directory-list</code> we can be sure that the latest version of the
268-
Org-mode manual is available to the <code>info</code> command (bound to <code>C-h i</code>).
269-
</p>
270-
271-
272-
<pre class="src src-emacs-lisp">(<span class="org-keyword">unless</span> (boundp 'Info-directory-list)
273-
(setq Info-directory-list Info-default-directory-list))
274-
(setq Info-directory-list
275-
(cons (expand-file-name
276-
<span class="org-string">"doc"</span>
277-
(expand-file-name
278-
<span class="org-string">"org"</span>
279-
(expand-file-name <span class="org-string">"src"</span> starter-kit-dir)))
280-
Info-directory-list))
281-
282-
</pre>
283-
284-
285-
286-
287255
</div>
288256
</div>
289257
</div>

starter-kit-perl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit Perl</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:41 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:08 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>

starter-kit-publish.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit Publish</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:40 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:08 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>

starter-kit-python.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Starter Kit Python</title>
88
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
99
<meta name="generator" content="Org-mode"/>
10-
<meta name="generated" content="2011-06-16 15:51:40 PDT"/>
10+
<meta name="generated" content="2011-06-17 11:10:08 PDT"/>
1111
<meta name="author" content="Eric Schulte"/>
1212
<meta name="description" content=""/>
1313
<meta name="keywords" content=""/>

0 commit comments

Comments
 (0)