emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: agenda files list


From: Eraldo Helal
Subject: [Orgmode] Re: agenda files list
Date: Tue, 20 Oct 2009 05:24:11 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]