From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: [Orgmode] Startup page Date: Thu, 17 Mar 2011 18:48:56 -0400 Message-ID: <9965.1300402136@alphaville.usa.hp.com> References: <7A1717E3-E36E-490D-9432-A10B06DD7CE2@khinsen.fastmail.net> <15877.1300293916@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=51382 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0M0H-00082I-GG for emacs-orgmode@gnu.org; Thu, 17 Mar 2011 18:49:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0M02-0003iN-0b for emacs-orgmode@gnu.org; Thu, 17 Mar 2011 18:48:58 -0400 Received: from g5t0008.atlanta.hp.com ([15.192.0.45]:29828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0M01-0003iF-Nb for emacs-orgmode@gnu.org; Thu, 17 Mar 2011 18:48:57 -0400 In-Reply-To: Message from Matthew Sauer of "Thu, 17 Mar 2011 17:17:42 CDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matthew Sauer Cc: "Filippo A. Salustri" , nicholas.dokos@hp.com, emacs-orgmode@gnu.org Matthew Sauer wrote: > Sigh, at times it's the small things that you miss that bite you in the > foot. > > (defun org-dblock-write:recently-modified (params) > (insert (mapconcat (lambda (arg) (concat "[[file:" arg "][" arg "]]" )) > (split-string (shell-command-to-string "ls -t > /cygdrive/c/Dropbox/org *.org | head -10")) "\n"))) > (org-agenda nil "a") > (delete-other-windows) > (split-window-horizontally) > (find-file "/cygdrive/c/Dropbox/org/Refile.org") > > > I forgot (delete-other-windows), I don't know if it the default behavior but > my agenda opens up 1/2 height and I have to run C-x 1 to make it full > screen after C-c a a . . .now to get my next dynamic block function > (another thread to be started) working and I will have my weekly agenda on > one side of the screen. On the tother I will have recently modified files > on the other, needing filed captures and Unscheduled TODO items. > > Thanks for all the help everyone has thrown my way. I am going to look at > Filippos' code to see if I can even make this a bit more elegant. > The org-agenda call has the potential of messing up your carefully crafted window configuration, depending on the value of org-agenda-window-setup. The default value is reorganize-frame which should tell you something :-). You might want to change it temporarily (or customize it to make it permanent): (let ((org-agenda-window-setup 'current-window)) (org-agenda nil "a")) Nick