From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org, Manuel Giraud <manuel.giraud@univ-nantes.fr>
Subject: Re: Babel for blogging
Date: Sat, 16 Oct 2010 00:03:05 +0100 [thread overview]
Message-ID: <87pqvbm53q.wl%ucecesf@ucl.ac.uk> (raw)
In-Reply-To: <87ocavfkqu.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]
On Fri, 15 Oct 2010 11:07:05 -0600, "Eric Schulte" <schulte.eric@gmail.com> wrote:
>
> Hi Manuel,
>
> The following works for me, it creates an index of all files in the same
> directory as the Org-mode file.
>
> --8<---------------cut here---------------start------------->8---
> * index
>
> Create an index automatically with an elisp code block.
>
> #+begin_src emacs-lisp :exports results :results raw
> (mapconcat
> (lambda (file)
> (unless (file-directory-p file)
> (format "- [[%s][%s]]" (file-name-sans-extension file) file)))
> (directory-files (or default-directory
> (file-name-directory (buffer-file-name))))
> "\n")
> #+end_src
> --8<---------------cut here---------------end--------------->8---
Maybe the format statement should look like this instead (swap the two
arguments to the format string around):
: (format "- [[%s][%s]]" file (file-name-sans-extension file))))
Also, maybe change the link to include the current directory:
: (format "- [[./%s][%s]]" file (file-name-sans-extension file))))
Just some thoughts late on a Friday night... ;-)
[-- Attachment #2: Type: text/plain, Size: 75 bytes --]
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D
[-- Attachment #3: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-10-15 23:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-15 16:07 Babel for blogging Manuel Giraud
2010-10-15 17:07 ` Eric Schulte
2010-10-15 17:44 ` Pere Quintana Seguí
2010-10-15 20:32 ` Eric Schulte
2010-10-15 22:13 ` Pere Quintana Seguí
2010-10-16 17:17 ` Olivier Schwander
2010-10-15 23:03 ` Eric S Fraga [this message]
2010-10-18 14:22 ` Manuel Giraud
2010-10-18 21:36 ` Sebastian Rose
2010-10-20 17:09 ` Manuel Giraud
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pqvbm53q.wl%ucecesf@ucl.ac.uk \
--to=ucecesf@ucl.ac.uk \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=manuel.giraud@univ-nantes.fr \
--cc=schulte.eric@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.