summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-01-14 23:02:30 -0500
committerKyle Meyer <kyle@kyleam.com>2015-01-14 23:02:30 -0500
commitc83039177fc658251fcf5c3915844f930914b7b8 (patch)
treef7a826eafa28a8284adcf9a155bf4c90412f558f /lisp
parent4529031ffa015bb5724315f02393cc113df0c419 (diff)
downloademacs.d-c83039177fc658251fcf5c3915844f930914b7b8.tar.gz
Add variable for agenda refile targets
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-org.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el
index a2e1d72..beda4a1 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -404,11 +404,13 @@ displayed in the agenda."
(setq org-refile-targets '((nil :maxlevel . 2))
org-refile-cache nil)
+(defvar km/org-agenda-refile-targets
+ '((nil :maxlevel . 3)
+ (org-agenda-files :maxlevel . 2)
+ (org-agenda-text-search-extra-files :maxlevel . 2)))
+
(add-to-list 'safe-local-variable-values
- '(org-refile-targets
- (nil :maxlevel . 3)
- (org-agenda-files :maxlevel . 2)
- (org-agenda-text-search-extra-files :maxlevel . 2)))
+ (cons 'org-refile-targets km/org-agenda-refile-targets))
(setq org-refile-target-verify-function 'km/verify-refile-target)