Skip to content

Commit

Permalink
fix #4 - add project-ns-prefix snippet to libraryofbabel, update
Browse files Browse the repository at this point in the history
core.org, add note about TOC autogeneration to README
  • Loading branch information
postspectacular committed Aug 31, 2015
1 parent 18ca556 commit 14e892a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,7 @@ If omitted, some values will assume the following defaults:
I recommend using the Emacs
[Leuven theme](https://github.com/fniessen/emacs-leuven-theme) for a
great org-mode experience...

In order to automatically update the TOC of each org file, I too
recommend installing the
[org-toc package](https://github.com/snosov1/org-toc) Emacs package.
2 changes: 1 addition & 1 deletion src/leiningen/new/thing_babel/core.org
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ templates to be resolved.
** Complete namespace definition

#+BEGIN_SRC clojure :tangle ../{{tangle-target}}src/{{ns-root-path}}/core.cljc :noweb yes :mkdirp yes :padline no
(ns {{ns-root}}.core)
(ns <<project-ns-prefix>>.core)

<<helpers>>

Expand Down
7 changes: 7 additions & 0 deletions src/leiningen/new/thing_babel/libraryofbabel.org
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ parts of this project. Templates using variables are wrapped in a
simple Elisp form, but you can also define verbatim templates if vars
aren't needed...

** Project namespace prefix

#+NAME: project-ns-prefix
#+BEGIN_SRC clojure
{{ns-root}}
#+END_SRC

** Example template with variables

#+NAME: lob-{{name}}-greetings
Expand Down

0 comments on commit 14e892a

Please sign in to comment.