summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-03-30 17:23:08 -0400
committerKyle Meyer <kyle@kyleam.com>2014-03-30 17:27:11 -0400
commit36abd6283037ab321b165f34034001d673646cad (patch)
treed6d66ed16918a30d9d6aa369890a95ba4ff7a861
parent4fbc5014f61c424fd7be9303a9520ff059370832 (diff)
downloademacs.d-36abd6283037ab321b165f34034001d673646cad.tar.gz
Set org-agenda-text-search-extra-files
-rw-r--r--lisp/init-org.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el
index fada768..8669c27 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -160,6 +160,8 @@ be restored properly."
(setq org-agenda-files '("~/notes/calendar.org" "~/notes/tasks.org")
org-default-notes-file "~/notes/tasks.org"
+ org-agenda-text-search-extra-files '("~/notes/backburner.org"
+ "~/notes/misc.org")
org-agenda-show-all-dates t
org-agenda-skip-deadline-if-done t
org-agenda-skip-scheduled-if-done t
@@ -178,17 +180,15 @@ be restored properly."
;;; Refiling
-(defvar km/org-refiling-targets
- (append org-agenda-files '("~/notes/backburner.org" "~/notes/misc.org"))
- "List of refiling targets for agenda, including non-agenda
-files.")
-
(defun km/verify-refile-target ()
"Exclude DONE state from refile targets."
(not (member (nth 2 (org-heading-components)) org-done-keywords)))
-(setq org-refile-targets '((nil :maxlevel . 3)
- (km/org-refiling-targets :maxlevel . 2)))
+(setq org-refile-targets `((nil :maxlevel . 3)
+ (,(append org-agenda-files
+ org-agenda-text-search-extra-files)
+ :maxlevel . 2)))
+
(setq org-refile-target-verify-function 'km/verify-refile-target
;; Use ido for refiling.
org-outline-path-complete-in-steps nil