From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Org agenda and recent files list.... Date: Thu, 09 Aug 2012 23:01:43 -0500 Message-ID: <502487A7.7060307@sift.info> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szh1J-0000SF-4W for emacs-orgmode@gnu.org; Fri, 10 Aug 2012 00:40:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Szh1H-0000sE-27 for emacs-orgmode@gnu.org; Fri, 10 Aug 2012 00:40:21 -0400 Received: from 23-25-144-217-static.hfc.comcastbusiness.net ([23.25.144.217]:50516 helo=mpls.sift.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szh1G-0000s1-Tg for emacs-orgmode@gnu.org; Fri, 10 Aug 2012 00:40:18 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode I was finding that the use of org-agenda made my recent files list less than useful, by filling up the list with files that I rarely opened "by hand" with find-file. The following snippet, added to my org-config file, seems to have fixed things. ;;;--------------------------------------------------------------------------- ;;; Agenda files shouldn't get entries in the recentf-list ;;;--------------------------------------------------------------------------- (defun org-is-agenda-file (filename) (find (file-truename filename) org-agenda-files :key 'file-truename :test 'equal)) (require 'recentf) (pushnew 'org-is-agenda-file recentf-exclude) I mention this on the off-chance it's useful to someone else... cheers, r