emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org agenda and recent files list....
@ 2012-08-10  4:01 Robert Goldman
  2012-08-10  7:21 ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Goldman @ 2012-08-10  4:01 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-03  9:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-10  4:01 Org agenda and recent files list Robert Goldman
2012-08-10  7:21 ` Bastien
2012-08-10 20:39   ` Robert Goldman
2014-02-03  9:55     ` mohamed

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).