From: Eraldo Helal <eraldo@eraldo.at>
To: Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: agenda files list
Date: Tue, 20 Oct 2009 05:24:11 +0200 [thread overview]
Message-ID: <938fae2d0910192024h30e619e1v2ad959f94eee51d6@mail.gmail.com> (raw)
In-Reply-To: <938fae2d0910192015u77b5a25fhfc04e3765c501b9d@mail.gmail.com>
code update:
;; list all agenda categories (linking to their files) in a new buffer
(defun orgx-list-agenda-files()
"Create a list of all org-agenda files as org-mode links"
(interactive)
(let ((list-buf (get-buffer-create "*org-agenda-files*")))
(with-current-buffer list-buf
(erase-buffer)
(insert "* Org Agenda Files\n")
(dolist (file org-agenda-files)
(let ((desc (file-name-sans-extension (file-name-nondirectory file))))
(insert (concat "- [[" file "][" desc "]]\n")))))
(switch-to-buffer list-buf))
(org-mode)
(goto-char (point-min))
(org-cycle '(3)))
prev parent reply other threads:[~2009-10-20 3:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 3:15 agenda files list Eraldo Helal
2009-10-20 3:24 ` Eraldo Helal [this message]
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=938fae2d0910192024h30e619e1v2ad959f94eee51d6@mail.gmail.com \
--to=eraldo@eraldo.at \
--cc=emacs-orgmode@gnu.org \
/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.