summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-09-27 21:12:23 -0400
committerKyle Meyer <kyle@kyleam.com>2014-09-27 21:12:23 -0400
commit1c2691c04c7323ee510bd6fa9bb2b29f9c256010 (patch)
tree02d773d18b907f65cedb412918b64c1e16a4e256
parent58e52585c1707260055d5bfe66d3d232281a5edf (diff)
downloademacs.d-1c2691c04c7323ee510bd6fa9bb2b29f9c256010.tar.gz
Add org-open-file targets to list of recent files
-rw-r--r--lisp/init-org.el3
1 files changed, 3 insertions, 0 deletions
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))