From 1c2691c04c7323ee510bd6fa9bb2b29f9c256010 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 27 Sep 2014 21:12:23 -0400 Subject: Add org-open-file targets to list of recent files --- lisp/init-org.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lisp') diff --git a/lisp/init-org.el b/lisp/init-org.el index 4266d6d..02bfa65 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -34,6 +34,9 @@ "* %?\n%x"))) (key-chord-define-global ",t" 'org-capture) +(defadvice org-open-file (after km/org-open-add-to-recentf activate) + (recentf-add-file path)) + (defun km/open-main-orgfile () (interactive) (find-file org-default-notes-file)) -- cgit v1.2.3